如何从 git 中删除 sublime 编辑器

how to remove sublime editor from git

我在默认 git 编辑器中添加了 sublime。但是我收到这样的错误消息:

ubl -n -w: subl: command not found
error: There was a problem with the editor 'subl -n -w'.

我不想再使用 sublime,谁知道如何从 git

中删除 sublime 编辑器

您可以更改您的默认编辑器(例如 vi):

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

其中 --global 表示您正在全局更改设置。您还可以在当前存储库中本地 (--local) 并使用系统 (--system) 更改设置。

您可以通过 git config -l 查看您当前的配置。

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

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