change git default commit editor

git

My git default commit editor is nano. But I familiar with vi. So how to change that? git config --global core.editor "vi".

You can change back to nano via git config --global core.editor "nano".

reference

/www /www