Git: How to list commits on this branch but not from merged branches
git log has option –first-parent, so you won’t get topic history. When merged from master, the master commits are the first parents in merge. Git log allows to display only those commits with –first-parent, so you get the right stuff.