Git uses Vim as the default editor, but this editor is always unavailable, so it is intended to replace it with sublime_text.
Use Windows Default notepad
git config --global core.editor notepad
Sublime_text is a little more troublesome.
1. Add the "D: \ Program Files \ sublime text 2 \" installation directory of sublime_text to the path of the environment variable.
If no environment variable is added, the following error occurs.
2. Change the default git editor.
Git config -- global core. Editor sublime_text.exeThe error "core. Editor has multiple values" is reported when the default editor is changed"
Therefore, use the following methods to handle the problem:
git config --global --add core.editor notepad
3. Exit and restart gitSublime_text can be used for submission, but sublime_text must be disabled after the output is complete. Otherwise, git cannot complete the submission.
Refer:
Http://www.cnblogs.com/1-2-3/archive/2010/07/10/git-use-emeditor.html
http://blog.plotcup.com/a/56
From Weizhi note (wiz)