Git Revision Syntax/Topological ordering

Display commit graph respecting topology.

Section: Special Selectors and Search

Topological ordering

bash
bash
git log --topo-order --graph --oneline

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Special Selectors and Search
Youngest commit by message
Find youngest reachable commit with matching message text.
OpenIn sheetbashsame section
Search all refs by message
Find commits across all refs matching message text.
OpenIn sheetbashsame section
Follow renamed file history
Continue file history across renames.
OpenIn sheetbashsame section
List commits with parents
Include parent IDs in output.
OpenIn sheetbashsame section
Current commit
Resolve HEAD to the current commit ID.
OpenIn sheetbash1 tag match
Commits reachable from right not left
Show commits in feature not in main.
OpenIn sheetbash1 tag match