git horror 

I nuked two unpushed commits and several uncommitted files by just pressing enter on the first result of `C-r res`.
Which wasn't to my surprise `make restart-db`, but `git reset --hard origin/staging`.
So, one panic attack later, i restored the commits via `git reflog`.
The uncommitted files could be recovered inside emacs via undo-tree-mode.
Thanks git and Emacs, for not making me write all this again.
#git #emacs #gitHorror
Follow

git horror 

@daniel I avoided missteps like this in general, by not using Emacs shortcuts for everything. Some things are safer done by typing the full shell command or alias or even M-x emacs command name.

git horror 

@tetrislife
The mistake actually happened in the terminal, by searching my command history and just pressing return on the first thing I suspected to be the thing I wanted to do.
Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.