how to check files you committed in last git commit code example
Example 1: git check which files are committed
$ git show --pretty="" --name-only bd61ad98
index.html
javascript/application.js
javascript/ie6.js
Example 2: git check which files are committed
$ git diff-tree --no-commit-id --name-only -r bd61ad98
index.html
javascript/application.js
javascript/ie6.js