how to see files changed in a git commit code example Example: files changed in a commit git diff --name-only HEAD HEAD~1