2

I accidentally deleted all files from a new git repository. There are no other backups and everything is local. I did the following:

git init
git add .
git rm . -rf

I did not do an initial commit. I have tried git checkout . and git reset but this did nothing. I am pretty sure these files are gone, but please let me know if there is a way to recover them.

Henry
  • 3,472
  • 2
  • 12
  • 36

0 Answers0