Use
$ git log
to find the revision you want, then take the hash (you only need the first 7 letters of it) and run
$ git checkout cb2179f // random fake hash
or you can go back a specific number of commits:
$ git checkout HEAD~3 // go back 3 commits
to go back to the latest commit (the head):
$ git checkout master
Last edited by MathWizz (2012-11-13 17:49:43)
Offline
MathWizz wrote:
Use
Code:
$ git logto find the revision you want, then take the hash (you only need the first 7 letters of it) and run
Code:
$ git checkout cb2179f // random fake hashor you can go back a specific number of commits:
Code:
$ git checkout HEAD~3 // go back 3 commitsto go back to the latest commit (the head):
Code:
$ git checkout master
Thanks.
Offline