Viewing full version tree in git

前端 未结 5 1168
遇见更好的自我
遇见更好的自我 2020-11-30 16:42

I am using the command line version of Git and gitk. I want to see the full version tree, not just the part that is reachable from the currently checked out version. Is it p

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 17:33

    if you happen to not have a graphical interface available you can also print out the commit graph on the command line:

    git log --oneline --graph --decorate --all
    

    if this command complains with an invalid option --oneline, use:

    git log --pretty=oneline --graph --decorate --all
    

提交回复
热议问题