list of altered files in git code example Example: list changed files git git diff --name-only SHA1 SHA2