我不小心将 git 编辑器设置为 Atom,如何将其恢复为 Git Bash?

Şak*_*yev 4 windows git github git-bash atom-editor

因此,我遇到了一个错误,内容是“请输入提交消息来解释为什么需要进行此合并,特别是如果它将更新的上游合并到主题分支中”,我在此线程中找到了解决方案。

然而答案之一说,你的文本编辑器是问题所在,所以将其更改为 Atom,并且在不知道如何在 Atom 中使用编辑器的情况下,我通过以下代码将 git 编辑器更改为 Atom:

git config --global core.editor "atom --wait"
Run Code Online (Sandbox Code Playgroud)

我正在使用 Git Bash,我想回到它作为我的核心编辑器,但我似乎找不到一种方法来做到这一点。

PS 我刚接触 Git 几天,所以请原谅我犯的任何基本错误。

小智 5

尝试这个:

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