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 回答1: 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