A riff on git: show all changed files between two commits: I want a listing of all files that have been changed between two commits, even if they are now the same (ie, changed a
If just want to see the file names where commit b
is chronologically after a
:
git diff ... --name-only # b is after a in time
If you want to see all the file names and what was changed from commit a to commit b then drop the last argument.
git diff ... # shows file names and what changed in each file
An example of
are the commit id's like 675ee6860d2c273bcc6c6a0536634a107e2a3d9f
. Generally the first 8-10 digits will work on most projects, but may need more if the project has oodles of commits. Typically I use the output of the id from git log --oneline
.
When you get a difference of a...b and b is later than a in time it's easy to see what was changed in each file chronologically.