set git editor

Shell
$ git config --global core.editor vim
Source

Also in Shell: