Given a file foo.m, how can I get Git to show me the complete contents of foo.m, as they were at some commit x?
+5
A:
git checkout sha1_here -- foo.m
or without checking the file out and just viewing it from the command line
git show sha1_here:path_to_file/foo.m
Philip Fourie
2010-02-19 04:27:08