20

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

JMSAZ2013
  • 663
  • 1
  • 5
  • 16

2 Answers2

30

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
    
Community
  • 1
  • 1
veducm
  • 5,885
  • 2
  • 33
  • 40
1

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

Matt S.
  • 12,849
  • 14
  • 74
  • 128