Can Git get the list of submitted files?
巴扎黑
巴扎黑 2017-05-02 09:40:00
0
6
761

After this git commit -m submission, can I use any command to get which files (file paths) were submitted?

Can I then read this change list from what file?

巴扎黑
巴扎黑

reply all(6)
仅有的幸福
# --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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template