我使用Windows 10一段时间后,将默认的Git编辑器更改为 Notepad++
现在,无论何时执行打开编辑器的命令,我都找不到保存消息并继续执行命令的任何方式-我最终不得不取消即CTRL
+C
我不具备有Notepad++
作为编辑器,但我也需要能够正确使用Git的。
我尝试过的
恢复原始编辑器(我无法找到方法)
你可以试试:
cd /path/to/your/repo
git config --unset-all core.editor
git config -l|grep core.editor
(grep
如果将其添加<git>/usr/bin
到Windows,则可用%PATH%
。这
<git>
是安装git的路径)
如果这不起作用,则可能需要针对本地和全局配置将其删除:
cd /path/to/your/repo
git config --local --unset-all core.editor
git config --global --unset-all core.editor
git config -l|grep core.editor
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句