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

前端 未结 11 629
旧时难觅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条回答
  •  执笔经年
    2020-11-28 01:45

    If you are sitting at the merge commit then this shows the diffs:

    git diff HEAD~1..HEAD

    If you're not at the merge commit then just replace HEAD with the merge commit. This method seems like the simplest and most intuitive.

提交回复
热议问题