Recover files after bad git reset --hard command
问题 This one is going to take an expert: I ran a git init and git add --all and a new project I worked on for way too long before I realized I hadn't setup the git repot. After running the git add I realized I forgot to create an .gitignore file. Without thinking I ran git reset --hard HEAD and OH NO all my files are gone, there's no log or reflog, no status and all commands result in fatal: bad default revision 'HEAD' . I'm sure the answer is that I'm screwed. Can't seem to do anything with any