The other day I needed to see the previous version of a file. I had some trouble locating the command to do this so I thought I would post it here for the intrepid Googler.
git show HEAD^:filename
You can also view a specific version of the file with:
git show sha1:filename
blog comments powered by Disqus