Skip to content

Git:Show

Show various types of objects.

SYNOPSIS

$ git show [options] <object>...

List all the files for a commit in Git

One way (preferred):

$ git diff-tree --no-commit-id --name-only -r bd61ad98
index.html
javascript/application.js
javascript/ie6.js

Another way:

$ git show --pretty="format:" --name-only bd61ad98
index.html
javascript/application.js
javascript/ie6.js

Or:

$ git show --oneline --name-only bd61ad98

Favorite site