Git: configure default editor

Without modifying the OS EDITOR you can configure git to use whichever editor you prefer:

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

You can also set the environment variable GIT_EDITOR in your bash_profile:

export GIT_EDITOR=nano