git count number of files changed between commits code example Example: git files changed between two commits git diff --name-only SHA1 SHA2