Answer the question
In order to leave comments, you need to log in
How to recover files after git reset --hard?
Hello. A git repository has been created for the project. The developer in the project did "git init" and "git add .", and then realized that logs were getting into git, and decided to add them to gitignor, but before that he did git reset --hard. After that, all the files that were indexed disappeared. That is, he did not have time to commit, let alone send to a remote repository
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