This question has already been answered:
Removed files after git rm -r -f . command git rm -r -f . .
How to restore them now? it was the first commit, before that there was not a single commit, we just locally made git add . therefore, the project was not poured into the repository and it will not be possible to restore it from there.
$ git reflog fatal: your current branch 'master' does not have any commits yet
git add ., use the instructions in the answer link above. - Nick Volynkin ♦