Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Revert to a previous commit?
$ git log, find and copy the desired commit number.
$ git checkout, insert the desired commit number
I will add to the answers given earlier:
if you need to roll back changes to specific files not made to the commit:
git checkout -- path/to/file
where path/to/file is the path to the file or folder, you can use the usual path masks, if you specify a folder, then will roll back all attached files
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question