首页 > 解决方案 > 即使它适用于合并,Git 也无法为交互式变基执行编辑器

问题描述

和标题说的差不多。我收到以下错误:

/mingw64/libexec/git-core/git-legacy-rebase--interactive: line 94: rebase-editor: command not found
Could not execute editor

我知道那里有类似的问题,但我发现的只是“编辑器设置不正确,做 xy”。我做到了。我的配置列表:

core.editor='G:/Anwendungen/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin

我仍然得到错误。奇怪的是,当我做--no-ff合并时,notepad++ 打开就好了。

有任何想法吗?

标签: git

解决方案


尝试将 Git 升级到最新的 2.30.1:我的 Git For Windows 不包含任何git-legacy...脚本。

如“更快的方法git rebase --preserve-merges”中所述,git rebase现在几乎完全在 C 中实现,应该使用您的git config core.editor设置。

OP确认:

  • 即使使用 2.30.1,问题仍然存在
  • 问题出在设置sequence.editor上:删除它意味着当使用默认提交消息编辑器时。

推荐阅读