Answer the question
In order to leave comments, you need to log in
How to revert to a previous commit?
Hello! Tell me, did you commit further, continued learning, messed up with the code, how do you return to the previous commit and continue working from it?
Answer the question
In order to leave comments, you need to log in
If you didn’t commit after it, then git checkout .
In general, enter the title of the question into Google and follow the first link much faster than writing here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question