Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
439 views
in Technique[技术] by (71.8m points)

git - Github's 'create merge commit' option for pull requests puts all the commits into a single one

So in my repository I have a branch called patch that I created from master in which I committed 6 commits. Then I created a pull request from patch in order to merge it to master. The pull request has been approved and when I merged it into master in Github using create merge commit option (which is the default option), strangely the merge created only one commit in master containing all the changes from the pull request's 6 commits, as if I had chosen squash and merge option (which I had not).

So I don't really understand what's going on with my repository. create merge commit option is supposed to merge the branch into master with all the new commits + an additional merge commit, but it's not behaving this way and I don't know why.

And What is even stranger is that create merge commit works fine in my other repositories. So I guess there is an option in this repository's settings that makes this problem occur, but I don't know where to look at.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...