如何从git中删除sublime编辑器

xin*_*xu1 3 git sublimetext2

我将sublime添加到默认的git编辑器中.但是我得到了这样的错误信息:

ubl -n -w: subl: command not found
error: There was a problem with the editor 'subl -n -w'.
Run Code Online (Sandbox Code Playgroud)

我不想再使用sublime,任何人都知道如何从git中删除sublime编辑器

Ros*_*oss 6

您可以使用以下命令更改默认编辑器(例如vi):

git config --global --add core.editor vi

--global意味着您要全局更改设置.您还可以--local在当前存储库中使用system(--system)更改local()的设置.

您可以看到当前配置的内容git config -l.

编辑:如果您只想删除编辑器而不是添加新编辑器,请使用:

git config --global --unset-all core.editor