Tuesday, November 3, 2015

macos - Git on Mac: How to set Nano as the default text editor?


When I'm using Git on Mac and need to do a rebase, the Vim editor kicks in by default. I would prefer Nano – could someone please explain how to reconfigure Git to make it use Nano for rebase?


Thank you!


Answer



git config --global core.editor "nano"


More information here:


http://git-scm.com/book/en/Customizing-Git-Git-Configuration


No comments:

Post a Comment