Answer the question
In order to leave comments, you need to log in
How to restore commit history in GitHub?
I applied the git push -f origin main command, after which the main branch on the github with 22 commits was replaced and 1 current commit remained. Q: How do I recover 22 lost commits?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question