使用 git 获取编辑的文件列表和编辑类型

get list of files edited and type of edit using git

有没有办法使用 git 获取已在提交中编辑的所有文件的列表? 我需要的信息是:

file1 edited 
file2 deleted 
file3 edited
file4 created

我试过了 git show <sha> 但提供有关行级别所有更改的信息,文件是否存在?

你要找的是

git show --name-status the-commit-id