我正在尝试使用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
有什么想法吗?
做类似的事情
检查以确保您的环境中未设置GIT_EDITOR
。它优先于core.editor。
作为附加措施,您可以查看sequence.editor配置选项: