I want a diff of all changes in a branch that is not merged to master yet.
I tried:
git diff master git diff branch..master git diff branch...master
Here's what worked for me:
git diff origin/master...
This shows only the changes between my currently selected local branch and the remote master branch, and ignores all changes in my local branch that came from merge commits.