In Git how can I see the diff from master to devel

2020-08-10 04:42发布

问题:

In Git how can I see the diff from master to develop?

I want to see everything that is not the same of the two branchs

回答1:

As explained in these other answers, you can do this by using git-diff to:

  • View all the differences:

    git diff master..develop
    
  • List files that are different:

    git diff --name-status master..develop
    


回答2:

git diff [branch1] [branch2] will do it for you.



标签: git