将Git核心编辑器更改为Notepad ++会导致问题

时间:2016-05-25 11:17:05

标签: windows git notepad++

我使用Windows 10,不久后我将默认Git编辑器更改为Notepad++

现在每当我执行一个启动编辑器的命令时,我找不到任何保存消息的方法。继续执行命令 - 我最终必须取消CTRL + C

我不 Notepad++作为编辑器,但我需要能够正确使用Git。

我尝试了什么

  • 恢复原始编辑器(我无法查明原因)
  • 在Stack Overflow上找到类似的问题

1 个答案:

答案 0 :(得分:1)

  

恢复原始编辑器(我无法找到原因)

您可以尝试:

cd /path/to/your/repo
git config --unset-all core.editor
git config -l|grep core.editor

(如果您将grep添加到Windows <git>/usr/bin,则%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
相关问题