Git: Change the text editor used to enter commit messages

In your ~/.gitconfig:

[core]
  editor=nano
Henning Koch