I deleted my db folder in a rails application in with git rm -r
I\'ve tried
git reset HEAD
and
git reset --hard HEAD <
Try git reset --hard HEAD^1 (the commit just before HEAD). Or you can get the hash of a previous known working commit with git log, then git reset --hard .
git reset --hard HEAD^1
git log
git reset --hard