Compare branches

To compare two local branches:

git diff branch1..branch2

This compares the tip of the branches

Sources