Tal*_*Kit 11 git text ascii-art
如下git文档中显示的git树如何
G H I J
\ / \ /
D E F
\ | / \
\ | / |
\|/ |
B C
\ /
\ /
A
Run Code Online (Sandbox Code Playgroud)
绘制(编辑).有没有特定的工具来做到这一点.我查看了http://www.asciiflow.com/,这对此目的不是很有帮助.
Von*_*onC 13
你本身没有一种方法来重现那种确切的模式类型,但是git日志认为这是一个好的开始:
git log --graph --pretty=format:'%Cred%h%Creset%n' --abbrev-commit --date=relative --branches --all
Run Code Online (Sandbox Code Playgroud)
git log --graph --pretty=format:'%Cred%h%Creset%n' --abbrev-commit
Run Code Online (Sandbox Code Playgroud)
很好