Last Updated: February 25, 2016
·
521
· urbansky

Compare two GIT branches

To compare two branches in git (i.e. staging and develop) use the following command:

git diff staging..develop

This will produce the full diff output. For a shorter summary use this:

git diff --stat staging..develop

See more examples: http://git-scm.com/docs/git-diff#_examples