Getting git diff of about-to-be-committed changes
I always like to go over the changes I'm committing before I actually commit them. In other version control systems (CVS, Subversion, Mercurial), running
cmd diff will show you what you're about to commit. Not so with Git! You need an extra option.
$ git diff --cached