Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw(edit) an ascii git tree

How the git tree shown in the git documentation like the one below

       G   H   I   J
        \ /     \ /
         D   E   F
          \  |  / \
           \ | /   |
            \|/    |
             B     C
              \   /
               \ /
                A

is drawn(edited). Is there a specific tool to do it. I have looked at the http://www.asciiflow.com/ which is not very helpful for this purpose.

like image 830
Talespin_Kit Avatar asked Aug 10 '11 08:08

Talespin_Kit


1 Answers

You don't have natively a way to reproduced that exact type of schema, but a git log that this one is a good start:

git log --graph --pretty=format:'%Cred%h%Creset%n' --abbrev-commit --date=relative --branches --all
like image 192
VonC Avatar answered Sep 30 '22 20:09

VonC