git - 在 git 历史记录中查找特定作者触及的所有文件?

标签 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/

相关文章:

git - 从 Jenkins 中删除 git 缓存

git - 如何在 Git 或任何源代码管理上管理具有巨大资源规模的项目

git 同时推送到多个仓库

Git fetch 反复告诉我同一个新分支

linux - 如何连接gitlab和openProject

git - 如何为 Git 存储库启用标识字符串?

Git 和 WordPress(+ 管理插件和媒体)

Git 仅在 GitLab 中记录不明确的参数

git - 如何在 GitLab 的服务器端添加预接收 Hook ?

windows - GitHub 分支 : Case-Sensitivity Issue?