Using Version Control in Emacs

Jun 20th, 20081 Comment

I’ve recently discovered another wonderful thing about Emacs – Version Control

Let’s say you are working on a project that is under some version control system.  You are editing a file and you type “C-x v v”.  Then Emacs will do the next logical thing with that file.  If the file is not on version control, it will be added.  If it is, it will ask for a comment and check-in the file.  Note that no where do you actually tell Emacs which version control you are using.  It knows. I’ve done this successfully with Mercurial and Subversion and apparently their are many more.  I haven’t tried it under MKS, but that’s okay, because I refuse to use it anyway.

If you use Dired, then you can do “C-x v d” which is Dired under VCS.  See here for more about that.

One Response to “Using Version Control in Emacs”

  1. adia says:

    totally unrelated to post…

    i know Gina said she’d never go for it but i just thought you should know that everybody is doing it :o )

    http://crunchychicken.blogspot.com/2008/06/golden-showers-garden-party.html

Leave a Reply

You must be logged in to post a comment.