Let\'s say I created a new branch my_experiment from master and made several commits to my_experiment. If I do a git log
my_experiment
master
git log
You can use a range to do that.
git log master..
If you've checked out your my_experiment branch. This will compare where master is at to HEAD (the tip of my_experiment).
HEAD