01
Oct
Learn how to list all the files on a git commit
Think if you need to get the list of files on a git commit. Then you can use following command.
If you need on last commit.
git show --name-only
If you need on a previous commit.
git show --name-only
The –no-commit-id suppresses the commit ID output.
The –pretty argument specifies an empty format string to avoid the cruft at the beginning.
The –name-only argument shows only the file names that were affected.