How to check real git diff before merging from remote branch?
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 changes of my local branch too. git diff remote/branch Evgen Bodunov From the documentation : git diff [--options] <commit>...<commit> [--] [<path>…] This form is to view the changes on the branch containing and up to the second <commit> , starting at a common ancestor of both <commit> . "git diff A...B" is equivalent to "git diff $(git-merge-base A B) B". You can omit any one of <commit> , which has the same effect as using HEAD