how to see files in commit git code example
Example 1: list of files in git commit
$ git diff-tree --no-commit-id --name-only -r bd61ad98
index.html
javascript/application.js
javascript/ie6.js
Example 2: git check which files are committed
$ git show --pretty="" --name-only bd61ad98
index.html
javascript/application.js
javascript/ie6.js
Example 3: git unstage file for commit
git reset myfilename.txt
Example 4: git diff show only files
git diff --name-only SHA1 SHA2