Git last commit changed files.

git diff-tree --name-only --no-commit-id HEAD

This will output the files that have been changed in the latest commit(HEAD) compared to the previous commit(HEAD~1,HEAD^)

Very useful in CI/CD scripts