Heim > Fragen und Antworten > Hauptteil
本次git commit -m提交后,能否用什么命令获得提交了哪些文件(文件路径)?
git commit -m
然后能否从什么文件中读出这个更改列表?
仅有的幸福2017-05-02 09:42:00
# --name-only 只显示文件名 git log --name-only -1 # --pretty=format:"" 格式化commit message 这里什么都不显示 git log --pretty=format:"" -1 # 最终 git log --pretty=format:"" --name-only -1
为情所困2017-05-02 09:42:00
try this command
git log --oneline --name-only -1
某草草2017-05-02 09:42:00
建议使用tig
PHP中文网2017-05-02 09:42:00
git show commitid,可以查看提交的详细内容,包括文件名,文件修改内容等等
或者用 git-diff 也行:
git diff --name-only HEAD~1 HEAD
漂亮男人2017-05-02 09:42:00
git log --stat