我很好奇是否有办法在命令行上显示分支层次结构?例如,如果我使用 git branch
,而不是像下面这样看输出:
* master
joes_work
refactoring
experiment
您可以看到如下输出:
* master
joes_work
refactoring
experiment
That way it's easy to see which branch a particular branch.. branched off of. Even if there's no specific command that outputs a tree structure, is there a command that outputs information on which branch came from which branch? I can use a perl script to format the output.