方法一: git diff-tree --no-commit-id --name-only -r mycommitid 方法二: git show --pretty="format:" --name-only mycommitid