<分区>
有没有一种方法可以使用标准 git 命令来查找 git 存储库中特定作者触及的所有文件,最好是在两个指定日期之间?我知道我可以使用 git log --author="Name"
,但理想情况下我只想要一个文件名列表,没有别的。
标签 git
<分区>
有没有一种方法可以使用标准 git 命令来查找 git 存储库中特定作者触及的所有文件,最好是在两个指定日期之间?我知道我可以使用 git log --author="Name"
,但理想情况下我只想要一个文件名列表,没有别的。
最佳答案
查看此答案 Can I get git to tell me all the files one user has modified?
git log --pretty="%H" --author="authorname" | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq
关于git - 在 git 历史记录中查找特定作者触及的所有文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18784159/