有没有办法可以使用标准的git命令来查找git存储库中特定作者所触及的所有文件,理想情况是在两个指定的日期之间?我知道我可以使用git log --author="Name"
,但理想情况下我只是喜欢一个文件名列表,而不是其他任何东西.
Man*_*ijn 14
看到这个答案我可以告诉我一个用户修改过的所有文件吗?
git log --pretty="%H" --author="authorname" | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq
Run Code Online (Sandbox Code Playgroud)
除了 Manuel van Rijn 的仅在两个指定日期之间查找日志的答案
git log [<options>] [<since>..<until>] [[--] <path>…]
Run Code Online (Sandbox Code Playgroud)
来源: https : //www.kernel.org/pub/software/scm/git/docs/git-log.html
归档时间: |
|
查看次数: |
2646 次 |
最近记录: |