If you want to revert your changes to the last revision, just type: C-x v u
If you want to run a shell command within Emacs, you can simply type: M-! If you want to include the output into the current buffer, then: C-u M-!
Get every new post delivered to your Inbox.