Configure the git text editor

Isabelle Viktoria Maciohsek · Git, Configuration · Apr 13, 2021

Configures the text editor used by git.

  • Use git config --global core.editor <editor-command> to call <editor-command> as the git text editor.
git config --global core.editor <editor-command>
git config --global core.editor "code --wait"
# Sets VS Code as the git text editor

Recommended snippets