how to git diff modified files only code example Example: git diff show only files git diff --name-only SHA1 SHA2