git show last committed file in a branch code example
Example 1: files changed in a commit
git diff --name-only HEAD HEAD~1
Example 2: git check which files are committed
$ git show --pretty="" --name-only bd61ad98
index.html
javascript/application.js
javascript/ie6.js