Git diff branch only

To see only the differences between master and branch from when they diverged (pull request style) do

git diff master...branch #note: three dots

To see all differences between master and branch do

git diff master..branch #note: two dots

Note that master or branch can be replaced with any ref like head depending on which branch you have checked out.

Tags: , , , , ,