Default editor for git set to nano--how?

You are missing GIT_EDITOR and core.editor.

ENVIRONMENT AND CONFIGURATION VARIABLES

The editor used to edit the commit log message will be chosen from the GIT_EDITOR environment variable, the core.editor configuration variable, the VISUAL environment variable, or the EDITOR environment variable (in that order).

You set core.editor with ...

git config --global core.editor "vim"

My wild guess you have set nano as a default system editor, but you can try to update it with

    sudo update-alternatives --config editor