After this git commit -m submission, can I use any command to get which files (file paths) were submitted?
git commit -m
Can I then read this change list from what file?
# --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: