select edditor as gits as default editor code example Example: set git editor to vim git config --global core.editor "vim"