I was playing around with git, I'm not really good with it, I know a little bit about it and while i was trying to make the .gitignore work on a different branch so I issued
$ git rm -r --cached .
fatal: pathspec '.' did not match any files
So I was looking for some options for git rm , I accidentally pressed enter and typed git rm
, and now almost all the files that I've been working on for months are now gone, how will I recover it back?