Created
May 2, 2013 22:18
-
-
Save dbalexandre/5505916 to your computer and use it in GitHub Desktop.
List all the files for a commit in git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git show --pretty="format:" --name-only bd61ad98 | |
index.html | |
javascript/application.js | |
javascript/ie6.js | |
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. | |
Reference: http://stackoverflow.com/questions/424071/list-all-the-files-for-a-commit-in-git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment