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

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...