set git default editor code example
Example 1: set git editor
$ git config --global core.editor vim
Example 2: git change default editor
git config --global core.editor vim
$ git config --global core.editor vim
git config --global core.editor vim