How to change git editor to nano?

It is easy:

git config --global core.editor "nano"