84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
本次git commit -m提交后,能否用什么命令获得提交了哪些文件(文件路径)?
git commit -m
然后能否从什么文件中读出这个更改列表?
# --name-only 只显示文件名 git log --name-only -1 # --pretty=format:"" 格式化commit message 这里什么都不显示 git log --pretty=format:"" -1 # 最终 git log --pretty=format:"" --name-only -1
try this command
git log --oneline --name-only -1
It is recommended to use tig
git show commitid, you can view the details of the submission, including file name, file modification content, etc.
Or you can use git-diff:
git diff --name-only HEAD~1 HEAD
git log --stat
try this command
git log --oneline --name-only -1
It is recommended to use tig
git show commitid, you can view the details of the submission, including file name, file modification content, etc.
Or you can use git-diff: