Emacs: escape rope
So you have gotten yourself into a weird command and you have no idea how and what will blow up if you continue. I get into it all the time.
In emacs you can git C-g anywhere to cancel what ever you're in the middle of. I use it hundred times a day.