Git – list commits in topic branch that are not within the master branch

git log topic ^master –no-merges

This will list all commits within the topic branch that are not found within the master branch.

I needed this to cherry-pick specific commits out of a working feature branch when I mistakenly rebased against a common staging branch.

Leave a Reply

Your email address will not be published. Required fields are marked *