How do I make git use the editor of my choice for commits?
        Posted  
        
            by brass-kazoo
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by brass-kazoo
        
        
        
        Published on 2010-04-08T00:28:46Z
        Indexed on 
            2010/04/08
            0:33 UTC
        
        
        Read the original article
        Hit count: 377
        
For example, I would prefer to write my commit messages in vim, but it is opening emacs.
How do I configure git to always use vim instead? Note that I want to do this globally, not just for a single project.
© Stack Overflow or respective owner