列出给定文件的所有提交(跨越所有分支) [英] List all commits (across all branches) for a given file
本文介绍了列出给定文件的所有提交(跨越所有分支)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此问题与密切相关,列出特定文件的所有提交但它是不同的。我想找出哪些提交,所有分支,都修改了给定的文件。
为了使它更复杂,给定的文件可能或者可能不在工作树中。
解决方案
您可以使用gitk
gitk --all<文件路径> (你需要安装gitk)
例如
gitk --all - /home/kit.ho/project/abc.txt
This question is closely related to List all commits for a specific file however it is different. I want to find out which commits, across all branches, had modified a given file.
To make it more complex, the given file may or may not be in the working tree.
解决方案
You can use gitk
gitk --all <path to file> (you need to install gitk)
e.g.
gitk --all -- /home/kit.ho/project/abc.txt
这篇关于列出给定文件的所有提交(跨越所有分支)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文