how to see what files are committed in git 1

how to see what files are committed in git

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

Here is what the above code is Doing:
1. git diff-tree -r bd61ad98
2. –no-commit-id
3. –name-only
4. -r bd61ad98

The first line tells git to show a diff between the bd61ad98 commit and its parent.
The second line tells git not to show the SHA1 of the commit.
The third line tells git to show only the names of the files that were changed.
The fourth line tells git to use the bd61ad98 commit.

Similar Posts