How do I see the commit differences between branches in git?

后端 未结 10 952
太阳男子
太阳男子 2020-12-04 04:13

I\'m on branch-X and have added a couple more commits on top of it. I want to see all the differences between MASTER and the branch that I am on in terms of commits. I could

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 04:58

    I'd suggest the following to see the difference "in commits". For symmetric difference, repeat the command with inverted args:

    git cherry -v master [your branch, or HEAD as default]
    

提交回复
热议问题