Basically I had a codebase on my local machine, I ran:
git init
git add .
At this point, I realized I wanted to add a .gitignore file.
So I thought I needed to unstage commits, and in an amateur move, executed the following command
git reset --hard
Now my entire code base is gone...
Is it possible to undo this!?