Answer the question
In order to leave comments, you need to log in
How to find a commit after a rollback?
Hi all! Help out. I rolled back to one of the previous commits with the command git checkout идентификатог коммита
After I built a big cloud of code. Executed commands in order
git add .
git commit -m "commit name"
git checkout main
- go to the main branch. After that, my work disappeared. And now I can neither roll back nor find the commit. Answer the question
In order to leave comments, you need to log in
If you've already committed your changes, find that commit with git reflog and switch to it with git checkout.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question