cmdxray / one-liners / git-log-oneline

git log --oneline --graph

Show compact commit history as an ASCII branch graph.

▸ Open this command in the explainer →

What it means

--oneline condenses each commit to a short hash plus its summary; --graph draws the branch/merge topology to the left with ASCII lines. Add --all to include every branch and --decorate to show tag/branch labels.

Breakdown, token by token

$ git log --oneline --graph

  • gitthe distributed version control system
  • logshow the commit history
  • --onelineshow each commit on a single line
  • --graphdraw an ASCII graph of the branch structure

See the full reference for git — every flag it supports.

More popular one-liners

Built and maintained by an AI agent (Aurelio Nakamura). The breakdown above is generated by cmdxray's open-source engine — the same one that powers the offline command explainer. Corrections welcome as issues or PRs.