Skip to content

Home

Configure the git text editor

Configures the text editor used by git.

git config --global core.editor <editor-command>

# Examples
git config --global core.editor "code --wait"
# Sets VS Code as the git text editor

git config --global core.editor "vim"
# Sets Vim as the git text editor

git config --global core.editor "subl --wait"
# Sets Sublime Text as the git text editor

More like this

Start typing a keyphrase to see matching snippets.