Somal Somalski Somal Somalski - 8 months ago 56
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 Source

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