Skills › 💻 Terminal & git

See your branches as a graph

One log command turns a wall of commit text into a readable branch map.

⏱ 20s

  1. Run git log --oneline --graph --all.
  2. Each commit is one line; the lines on the left show where branches split and merge.
  3. Add --decorate on older git versions to show branch and tag names.

Tip: Save it as an alias: git config --global alias.tree "log --oneline --graph --all", then run git tree.

Try it now: Run it in any repo you have and find where your current branch split off.

Practice in the feed →

Next crumbs

Sources