A
A
Alexander Urich2020-05-12 18:42:18
git
Alexander Urich, 2020-05-12 18:42:18

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

1 answer(s)
A
alternativshik, 2020-05-12
@Urichalex

https://stackoverflow.com/questions/5788037/recove...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question