Somal Somalski Somal Somalski - 12 days ago 8
Git Question

Git log - list all merges and direct pushes to master

How do I list all merges and all direct pushes to master branch?
I am not interested in commits that went to master branch with merge.

Answer

Are you looking for this :

git log --first-parent master

You can combine it with other log options, e.g :

git log --oneline --first-parent master