Git default text editor
Git uses the
GIT_EDITOR
environment variable to determine the text editor to use for commit messages.
Alternatively, to keep the editor configuration in the ~/.gitconfig file, set the Git text editor via the core.editor configuration variable.
This is done via Git global config:
git config --global core.editor "nano"