How can I check out a particular version of one file in git?
I found this mail on the mailing list, which said:
$ git checkout HEAD~43 Makefile
$ git reset Makefile
But I don't understand how to find out 'HEAD~43', if I do a git log aFile
, how can I find out which 'HEAD~43' I should use?
And why do I need to run git reset
for that file? What does it do?