git change default editor

C++
$ git config --global core.editor vimgit config --global core.editor "/bin/nano"git config --global core.editor vim
Source

Also in C++: