List all files changed in the last commit by using git diff-tree on HEAD.
git diff-tree --no-commit-id --name-only -r HEAD For example, if you changed README.md in your last commit:
adam@macbook:project (master) $ git diff-tree --no-commit-id --name-only -r HEAD README.md
Top comments (0)