Last Updated: February 25, 2016
·
443
· tfnico

Show changes in a branch

This will show the changes that have occurred in the branch foo since it branched out from the current branch:

git diff HEAD...foo

The triple-dot (...) basically makes the command above the same as this:

git diff `git merge-base HEAD foo` foo"