As a newbie git user, when I try to commit my work with
git commit -a -v
and I enter a commit message in my editor, I close the file, and g
First remove old entries of editors:
git config --global --unset-all core.editor
git config --unset-all core.editor
Set your editor:
For Notepad++
git config --global core.editor "Notepad++ -w"
git config core.editor "Notepad++ -w"
For sublime
git config --global core.editor "Notepad++ -w"
git config core.editor "subl -w"