Score:0

How do I change the text editor used by Git to micro?

cn flag

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?

Score:1
cn flag

It's pretty easy. All you have to do is this, and the next time you commit, Git will use micro instead of nano.

$ git config --global core.editor "micro"

This is pretty flexible. We can set it back to nano:

$ git config --global core.editor "nano"

Or we can have it use vi:

$ git config --global core.editor "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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.