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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With