git diff : compare working directory and staged file ( by git add)
git diff --stage: compare staged file with file on the server
git diff HEAD: compare working directory and file on the server
git show $commit --stat : show which files included for $commit
git log -p file : show commit history for file
原文:http://www.cnblogs.com/hugb/p/git.html