git rebase无法执行编辑器

问题描述 投票:8回答:3

我正在尝试使用rebase压缩一些git commit。当我运行这个:

git rebase -i HEAD

我收到此错误:

/usr/lib/git-core/git-rebase: 1: eval: /usr/bin/mate: not found
Could not execute editor

我尝试更改git config编辑器变量,但尚未使它起作用。现在,我的配置文件显示以下内容:

[core]
    editor = /usr/bin/vim

我正在运行Ubuntu 13.04

有什么想法吗?

linux git ubuntu git-config
3个回答
16
投票

做类似的事情


4
投票

检查以确保您的环境中未设置GIT_EDITOR。它优先于core.editor。


0
投票

作为附加措施,您可以查看sequence.editor配置选项:

© www.soinside.com 2019 - 2024. All rights reserved.