bfwzzg
Last Updated: February 25, 2016
·
788
· bloy
87825543a68e9a4179cdc6d9cf26faf2

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.

Say Thanks
Respond
Filed Under