Skip to content

Instantly share code, notes, and snippets.

@dbalexandre
Created May 2, 2013 22:18
Show Gist options
  • Save dbalexandre/5505916 to your computer and use it in GitHub Desktop.
Save dbalexandre/5505916 to your computer and use it in GitHub Desktop.
List all the files for a commit in git
$ 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