How to check real git diff before merging from remote branch?

前端 未结 3 1895
不知归路
不知归路 2020-12-07 10:40

I want to check the real diff between remote branch and local branch. How can I do that?

Issuing the below command partially works, but it shows the diff of the new

3条回答
  •  爱一瞬间的悲伤
    2020-12-07 11:37

    From the documentation:

    git diff [--options] ... [--] […]
    

    This form is to view the changes on the branch containing and up to the second , starting at a common ancestor of both . "git diff A...B" is equivalent to "git diff $(git-merge-base A B) B". You can omit any one of , which has the same effect as using HEAD instead.

    did you try this?

提交回复
热议问题