【发布时间】:2013-06-26 10:00:46
【问题描述】:
我正在尝试使用 rebase 压缩一些 git 提交。当我运行这个时:
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 reset --hard 'commit' 怎么样?
-
你检查过
$GIT_DIR/config和~/.gitconfig吗? -
是的,我都检查过了。
标签: linux git ubuntu git-config