how to change default code editor in git to command line code example Example: git change default editor git config --global core.editor vim