美文网首页
(转)git查看各个branch之间的关系图

(转)git查看各个branch之间的关系图

作者: playboy | 来源:发表于2018-03-23 14:53 被阅读0次


    提供两种方法:

    1.  使用git log命令

    git log --graph --decorate --oneline --simplify-by-decoration --all

    说明:

    --decorate 标记会让git log显示每个commit的引用(如:分支、tag等) 

    --oneline 一行显示

    --simplify-by-decoration 只显示被branch或tag引用的commit

    --all 表示显示所有的branch,这里也可以选择,比如我指向显示分支ABC的关系,则将--all替换为branchA branchB branchC

    2. 使用gitk工具

    gitk --simplify-by-decoration --all

    参考:

    http://stackoverflow.com/questions/5298972/relationship-between-n-git-branches

    git log --help

    参考链接:https://blog.csdn.net/fickyou/article/details/52584161

    相关文章

      网友评论

          本文标题:(转)git查看各个branch之间的关系图

          本文链接:https://www.haomeiwen.com/subject/aakxcftx.html