git config --global core.editor code example
Example 1: set git editor
$ git config --global core.editor vim
Example 2: git config global core editor
git config --global alias.ci commit
this example creates a ci alias for the git commit command.you can invoke git commit by executing git ci.