I have commit, abc
, and I want to list files that were modified for the commit.
What is the git command which will list modified files for that commit?
Find what file changed in a commit To find out which files changed in a given commit, use the git log --raw command.
If you have the hash for a commit, you can use the git show command to display the changes for that single commit. The output is identical to each individual commit when using git log -p .
git show --name-only SHA1 . you can also do: git diff --name-only HEAD@{3} HEAD@{0} for the exact commits you want to compare.
For filenames only:
git show --name-only abc
To see a summary of what happened to them:
git show --name-status abc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With