24

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
  • 713
  • 1
  • 6
  • 17

2 Answers2

33

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,933
  • 2
  • 34
  • 40
1

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

Matt S.
  • 13,305
  • 15
  • 73
  • 129