Find all commits that are in one branch, but not another

To see a list of which commits are on one branch but not another, use the following command:

$ git log --no-merges oldbranch ^newbranch