Last Updated: February 25, 2016
·
1.024K
· bloy

Git simplified revision graph (branching diagram)

The following git alias will show a simplified revision tree, which only shows decorated (tagged or branch head) revisions or the revisions with more than one parent or child. It leaves off commit subjects and only shows the commit hash and decorations:

git config --global alias.branches "log --graph --all \
  --simplify-by-decoration --format=format:'%h%Cgreen%d%Creset'"

Just type git branches to use.