gpt4 book ai didi

git - 如何在git中获取文件的版本树?

转载 作者:太空狗 更新时间:2023-10-29 13:55:36 26 4
gpt4 key购买 nike

在 clearcase 中我可以直接运行

branchlocation>cleartool vtree <filename>

然后会 pop 一个版本树,向我显示该文件的 merge 。我想在 git 中做同样的事情。

我认为这与 git read-tree 有关 - 但这看起来不像我要找的东西。

我的问题是:如何在 git 中获取文件的版本树?

最佳答案

gitk》中提到了Git Version Tree: Gitk方法

The problem with this command is that the output can easily become too large and complex to be easily readable.
If that is the case, then you might want to run gitk on a single file to only see the changes on that file. For example:

gitk --all FILENAME &

我从 Git 中的 ClearCase 版本树中看到的最接近的是“Viewing full version tree in git ”,它花费了:

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

并用 crc8/GitVersionTree 将其转化为:

https://camo.githubusercontent.com/0cf835a38473b6caa9b39fe59a7088d3dcb70f09/68747470733a2f2f7261772e6769746875622e636f6d2f637263382f47697456657273696f6e547265652f6d61737465722f73616d706c655f6776742e706e67

在“How do I build a version tree for a Git repository using LibGit2(Sharp) ”中提到,您还有可以提供帮助的图形工具

关于git - 如何在git中获取文件的版本树?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28423624/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com