List files modified for particular git commit

Alpha picture Alpha · Feb 2, 2014 · Viewed 63.9k times · Source

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?

Answer

Greg Bacon picture Greg Bacon · Feb 2, 2014

For filenames only:

git show --name-only abc

To see a summary of what happened to them:

git show --name-status abc