开发者

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.


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


git log --graph --pretty=format:'%Cred%h%Creset%n' --abbrev-commit

is fine

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜