I'd like to checkout a copy of a file at from June 15th at 12noon of this year. I was thinking something like this:
git checkout file.txt 'master@{2013-06-15 12:00:00}' file-a-week-ago.txt
But no dice. Any advice on how to do this?
Thank you!
Simple, use show
and redirect to the other file:
git show 'master@{2013-06-15 12:00:00}':file.txt > file-a-week-ago.txt
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