在git中查看完整版本树 [英] Viewing full version tree in git

查看:2742
本文介绍了在git中查看完整版本树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Git和gitk的命令行版本。我想看到完整版本树,而不仅仅是从当前签出的版本可到达的部分。是否有可能?

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 possible?

推荐答案

您可以尝试以下操作:

You can try the following:

gitk --all

您可以告诉 gitk 使用 git rev-list 理解,所以如果你只想要几个分支,你可以这样做:

You can tell gitk what to display using anything that git rev-list understands, so if you just want a few branches, you can do:

gitk master origin/master origin/experiment

...或者更奇异的东西,比如:

... or more exotic things like:

gitk --simplify-by-decoration --all

这篇关于在git中查看完整版本树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆