How to “git show” a merge commit with combined diff output even when every changed file agrees with one of the parents?

前端 未结 11 658
旧时难觅i
旧时难觅i 2020-11-28 01:15

After doing a \"simple\" merge (one without conflicts), git show usually only shows something like

commit 0e1329e551a5700614a2a34d8101e92fd9f2ca         


        
11条回答
  •  旧时难觅i
    2020-11-28 01:45

    If your merge commit is commit 0e1329e5, as above, you can get the diff that was contained in this merge by:

    git diff 0e1329e5^..0e1329e5
    

    I hope this helps!

提交回复
热议问题