Answer the question
In order to leave comments, you need to log in
What to do git erase project files? How to recover?
Good afternoon. I have a problem, I tried to push a project to git, I committed it but could not push it, I got an unnecessary file and tried to delete that file from the commit, and the project rolled back to the previous commit! I'm in a panic what to do????
Answer the question
In order to leave comments, you need to log in
git reflog will help you, look there, commits don't just disappear anywhere
You would write the commands you were executing. If reset then try git reset --hard ORIG_HEAD
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question