我的存储库中有一个文件,我想对其使用 git blame,但我不确定它的路径是什么。
我已经设法像这样使用 git log:
git log -- '**/somefile'
但我似乎无法对 git blame 做同样的事情。可能吗?
如果相关,我正在使用 mysysgit(git 版本:1.9.5.msysgit.1)。
最佳答案
您必须先找到文件:
git ls-files -- '**/somefile'
然后在返回的路径上使用git blame
。
关于带通配符的 Git blame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31675446/