I sometimes want to unstage changes. From the console I can use git reset or git reset <file>.

I couldn't find anything related in the docs or via C-x v C-h for vc, but it seems that this should be possible.

How would I do this with vc?

1 Answer 1


If you want to just undo the changes, go with C-x v u. This is all you need for all practical purposes. For sophisticated things, there is always magit.

vc-revert is an autoloaded interactive compiled-function in `vc.el'.

It is bound to C-x v u. It can also be invoked from the menu: Tools → Version Control → Revert to Base Version


Revert working copies of the selected fileset to their repository contents. This asks for confirmation if the buffer contents are not identical to the working revision (except for keyword expansion).

Probably introduced at or before Emacs version 24.1.


  • Thanks, that's it. Somehow I got the impression that this is only for registerd files, but you're right!
    – grszkthfr
    Commented Apr 4 at 18:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.