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

后端 未结 10 970
太阳男子
太阳男子 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:56

    You can easily do that with

    git log master..branch-X
    

    That will show you commits that branch-X has but master doesn't.

提交回复
热议问题