I like the Micro text editor. I prefer it to nano
, personally. However, even when I have it installed, Git defaults to nano
. How can I change what text editor git commit
uses?
I like the Micro text editor. I prefer it to nano
, personally. However, even when I have it installed, Git defaults to nano
. How can I change what text editor git commit
uses?
It's pretty easy. All you have to do is this, and the next time you commit, Git will use
micro
instead ofnano
.This is pretty flexible. We can set it back to
nano
:Or we can have it use
vi
:This will work for most text editors. I only have those three on my system right now, but that should work for others, like
emacs
, too.