How do I view previous diff commits using Git?
I have a file that I\'ve made several commits on, but I want to view previous versions of the file AND its diff\'s at diff
You need git log. If you were interested in file SOMEFILE use
git log
SOMEFILE
$ git log -p SOMEFILE
The -p option displays the patch which is probably the diff you are looking for.
-p