恢复 Git 编辑器

The*_*ner 6 git text-editor git-revert

我尝试更改 Git 的本机代码编辑器,但没有成功。现在,每当我尝试恢复提交时,都会收到以下错误:

hint: Waiting for your editor to close the file... notepad++.exe -wl1: notepad++.exe: command not found
error: There was a problem with the editor 'notepad++.exe -wl1'.
Please supply the message using either -m or -F option.
Run Code Online (Sandbox Code Playgroud)

我想知道如何重置或删除我所做的尝试修改。

phd*_*phd 8

从全局和本地配置中删除设置:

git config --global --unset-all core.editor
git config --unset-all core.editor
Run Code Online (Sandbox Code Playgroud)

默认编辑器是vim,它有点难以掌握,所以你最好设置一个不同的、更熟悉的编辑器。看

如何让 Git 使用我选择的编辑器进行提交?

https://stackoverflow.com/search?q=%5Bgit%5D+core.editor