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:
viorvim - atom:
atom --wait - sublime:
subl -n -w - vscode:
code --wait
Run:
$ $ git config --global core.editor <YOUR_EDITOR>
@nnja I think you need quotes around <YOUR_EDITOR> (at least I did for vscode):
$ git config --global core.editor "code --wait"