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

前端 未结 3 1893
不知归路
不知归路 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:42

    What you want to do is, as suggested by Evgen Bodunov:

    git diff ...remote/branch
    

    This will diff changes from remote/branch and ignore changes from your current HEAD.

提交回复
热议问题