xxxxxxxxxx
// create a alias to add all tracked and untracked files to stage and commit
// below "anc" is alias to call while commit
git config --global alias.anc "!git add -A && git commit -m"
// when committing a change
git anc "Commit Message"
xxxxxxxxxx
$ git diff-tree --no-commit-id --name-only -r bd61ad98
index.html
javascript/application.js
javascript/ie6.js
xxxxxxxxxx
$ git show --pretty="" --name-only bd61ad98
index.html
javascript/application.js
javascript/ie6.js