How can I check out a particular version of one file in Git? -
How can I see a specific version of a file git?
I found, who said:
$ git checkout head ~ 43 Macfile $ git reset makefile
but I do not know How to find 'head ~ 43', if I do a GIT log file
, let me know how to use 'HEAD ~ 43'?
And why do I need to run git reset
for that file? What does it do?
Do you know what file is related (i.e .:: specific modification)? Redo:
git checkout & lt; Commit & gt; & Lt; File & gt;
Other commands:
git checkout head ~ N & lt; File & gt;
When you want to get a version of the file back (which I do for old memories).
Comments
Post a Comment