setting up git editor code example
Example 1: set git editor
$ git config --global core.editor vim
Example 2: configure editor for git
$ git config --global core.editor emacs
$ git config --global core.editor vim
$ git config --global core.editor emacs