git log --graph --oneline --all --decorate

Category: Git - Core

git log --graph --oneline --all --decorate

Visualize all branches as an ASCII graph

Draws the commit history as a graph with branch topology, decorating each commit with its branch and tag names. The --all flag includes every ref, not just the current branch. It is the classic command behind the popular lg alias.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.