I just started using git. I ran the commands:
git init
Then I did:
git add app/controllers/*
(To add all the controllers.)
Then I decided to remove those, so I tried :
git rm app/controllers/*
This gave me an error saying there was some unsaved changes or something, so I had to use the -f
flag to force the delete. Now knowing exactly what I was doing, I retyped the command:
git rm -f app/controllers/*
Now all my controllers I've been working on for the past weeks are deleted and I don't know how to get them back. I unfortunately had no other back up, which I know is incredibly stupid.
I tried looking on Google. It there are a few commands I tried to run, but whatever I type it says that :
bad default revision 'HEAD'.
Any help recovering the past weeks of work would be incredibly appreciated!