该列表应包括创建,修改和删除的文件。
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?
git log --no-merges --stat --author="Pattern" --name-only --pretty=format:"" | sort -u
Point #1 - you don't commit files in 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.