Show non-merge differences for two commits in git

后端 未结 4 1358
野性不改
野性不改 2020-12-31 06:52

I have two commits, once of which is the ancestor of another. (They happen to be the start and end points of a branch. I don\'t think that matters, but I\'ll include it if i

4条回答
  •  余生分开走
    2020-12-31 07:17

    I didn't know the --no-merges -o options but here another solution (I suppose that merges have been done from master) :

    git checkout -b temp
    git rebase --onto master branch-start branch-end
    git diff master
    

提交回复
热议问题