git log --first-parent --oneline

Category: Git - Core

git log --first-parent --oneline

Follow only the mainline of history

Walks the first parent of every commit, so merged branches appear as single commits instead of expanding into their full history. It shows what actually happened on the branch itself. Ideal for reviewing a long-lived feature branch.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.