简体   繁体   English

在某个日期之后,我如何获得* I *已提交给Git(GitHub存储库)的所有文件的列表?

[英]How can I get a list of all files *I* have committed to Git (GitHub repo) after a certain date?

该列表应包括创建,修改和删除的文件。

The closest I can come up with for your question is something like 我可以为您的问题提出的最接近的是

git log --no-merges --stat --author="name" --pretty=format:"%C(Yellow)%h%Creset - %ad%n"

which will show the file revision history by a specific user, but grouped by commits. 它将显示特定用户的文件修订历史记录,但按提交分组。

If you want to see a simple name-only list, I suggest using h0tw1r3's answer from this related question: Can I get git to tell me all the files one user has modified? 如果要查看简单的仅名称列表,建议使用h0tw1r3的以下相关问题的答案:是否可以让git告诉我一个用户已修改的所有文件?

git log --no-merges --stat --author="Pattern" --name-only --pretty=format:"" | sort -u

Point #1 - you don't commit files in git . 第一点-您不提交git文件。 You create a commit, which is a snapshot of your entire project. 您创建一个提交,这是整个项目的快照。

Point #2 - try git help log - look for especially the --author=... , --committer=... , --before=... , and --after=... options. 点#2 -尝试git help log -寻找特别是--author=...--committer=...--before=... ,和--after=...选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将所有文件推送到我的 github 后如何修复 git 提交的身份不明的用户 - How to fix git committed unidentified user after I push all my files to my github 列出我已推送到远程Git存储库的所有文件 - List out all the files that I have pushed to the remote Git repo 如何在 git 中查看自某个日期以来添加到 repo 的所有文件? - How do I see all files added to a repo since a certain date in git? 如何列出上次编辑器和日期的github存储库中的所有文件? - How do I list all files in a github repo with last editor and date? 如何删除我不应该提交给仓库的文件? - How can I eliminate files that I shouldn't have committed to my repo? 如何使用 JGit 库获取 git 存储库文件夹中所有文件的 SHA 值列表 - How do I get the list of SHA values of all the files in a folder of my git repo using JGit library 我如何才能将github钩子从github企业推送到另一个git repo? - How can I have a github hook push from github enterprise out to another git repo? 如何只在我提交的文件中执行`git grep`? - How to do `git grep` only in files I have committed? 如何让git以递归方式列出所有未跟踪的文件? - How can I get git to list all untracked files recursively? 在Git仓库中,我如何递归查找所有二进制类型文件,并获得总大小? - In a Git repo, how can I recursively find ALL the binary type files, and get the total size?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM