[MAIN ISSUE SOLVED]

I was using Emacs to edit some code for an upcoming deadline, I fat fingered something, Emacs exited to terminal. Usually this would be fine, I'd lost a few minutes of work, BUT it appears the files were rolled back to near when I started the Emacs session that terminated (multiple hours)

I saved tens of times during the session, but nevertheless all my work appears to be gone. Of course it was as I was about to make a commit and push.

I would really appreciate any insight into what could have possibly happened. My best guess is a shortcut for `git reset --hard`, but even my GitHub repo is more up to date than my local files now (but still at least an hour behind).

With or without knowing what happened, is there a way to get these files back? Any help would be obviously be appreciated.

Edit: change first line status to solved

submitted by /u/Buildout
[link] [comments]