Skip to content

Instantly share code, notes, and snippets.

@flkc
Forked from nnja/config-editor.md
Last active February 11, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flkc/4c1bb21208826847f782de2a5845763f to your computer and use it in GitHub Desktop.
Save flkc/4c1bb21208826847f782de2a5845763f to your computer and use it in GitHub Desktop.
Configure git editor

Set which editor git should use.

This is the program that will open during a commit with no -m flag, a merge, a rebase, etc...

Select from any installed editor. Examples:

  • emacs: emacs
  • vi: vi or vim
  • atom: atom --wait
  • sublime: subl -n -w
  • vscode: code --wait

Run: git config --global core.editor <YOUR_EDITOR>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment