A
A
Artemka19032021-11-14 17:54:08
git
Artemka1903, 2021-11-14 17:54:08

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

1 answer(s)
A
Alexey Yarkov, 2021-11-14
@Artemka1903

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 question

Ask a Question

731 491 924 answers to any question