you are probably reading this post because you wanted to make a commit and then you were tired of using the default VI editor that came with git.

how about if you could use notepadd or sublime or even emacs for that matter, this is how you would configure git to setup as your default text editor.

Setup Your Text Editor

this is the procedure to setup your text editor in git:


$ git config --global core.editor emacs


If you are suing a windows computer, you can use a different text editor such as Notepad++, notepad or sublime for example, just do the following:

x86 Notepad++

$ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession"

x64 Notepad++

$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession"

NOTE: you can change the PATH of notepad++ to a different, just make sure you put the path to the .exe file

ok, by now you are wondering, could i use windows notepad.exe, i tried, but got an error after seting it up, i used this command:


$ git config --global core.editor "'C:\WINDOWS\system32\notepad.exe' -multiInst -nosession"