Git – List all files changed between 2 commits
Please note that file changes done in commit SHA1 is excluded in the output:
Example: If you have the following commits:
- SHA1
- SHA2
- SHA3
- SHA4
Only the file changes done in SHA2, SHA3 and SHA4 will show in the output
git diff --name-only SHA1 SHA4