为git关联编辑器(比如notepad++) Associating text editors with Git

Associating text editors with git

Using Notepad++ as your editors

you can set your default editor in Git to use Notepad++ if you have installed the editor.

1、install notepad++
2、open git bash
3、Type this command:

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

when you commit, type "git commit",then you can edit your message by notepad++

reference : https://help.github.com/en/articles/associating-text-editors-with-git

如果是Windows的gvim,确保安装路径用单引号引起来:

posted @ 2019-03-09 16:20  feipeng8848  阅读(692)  评论(0编辑  收藏  举报