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