Git提交时默认编辑器Vim换成Notepad++

时间:2023-11-20 17:34:32

在使用GIT进行commit时,会默认使用Vim,其使用较为笨重,改为Notepad++编辑器较为简便。

git commit 默认打开Notepad++编辑器配置

  

  打开git --- bash,输入命令行:git config --global core.editor "'D:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

  ps:  D:/Program Files/Notepad++/notepad++.exe  为notepad++的安装路径。