I am surprised it didn't cover reverting back a file to old version:<p>1. Check the diff: git diff <commit hash> <file><p>2. Revert back: git reset <commit hash> <file>
This was pretty popular on HN last year:
<a href="http://news.ycombinator.com/item?id=2104872" rel="nofollow">http://news.ycombinator.com/item?id=2104872</a>