Showing Git branch structure

后端 未结 6 1638
长发绾君心
长发绾君心 2020-12-07 18:51

Is there a way to show only the branch structure in Git? There are a number of tools that show the commits graphically, but in my case the list is so long that it\'s impossi

6条回答
  •  误落风尘
    2020-12-07 19:39

    Basic solution is:

    git log --graph --all
    

    If you want to get more fancy:

    git log --graph --all --pretty=format:"%Cblue%h%Creset [%Cgreen%ar%Creset] %s%C(yellow)%d%Creset"
    

提交回复
热议问题