1

当我跑

$git pull

我得到:

Vim: Caught deadly signal ILL
Vim: Finished.
error: vi died of signal 4
error: There was a problem with the editor 'vi'.
Not committing merge; use 'git commit' to complete the merge.

当我跑

$git rebase -i HEAD~10

我得到:

Vim: Caught deadly signal ILL
Vim: Finished.
/opt/boxen/homebrew/Cellar/git/1.8.0-boxen1/libexec/git-core/git-rebase--interactive: line  212: 40705 Illegal instruction: 4  vi "$@"
 Could not execute editor

我曾经在运行时遇到错误:

$vi

但是能够通过将这些行添加到我的 .bashrc 来绕过它们:

alias vi='/opt/boxen/homebrew/Cellar/vim/7.3.843/bin/vim'
alias vim='/opt/boxen/homebrew/Cellar/vim/7.3.843/bin/vim'

这正在扼杀我的工作流程,关于修复它的任何想法?

4

1 回答 1

2

所以,我解决了这个问题。至少,部分。

我的 git config 编辑器,就像 romainl 建议的那样,需要进行编辑。出于某种原因,vi 的实例指向 '/opt/boxen/homebrew/Cellar/vim/7.3.843/bin/vi' 以某种方式损坏。通过将此行添加到我的 .gitconfig 中:

editor = /opt/boxen/homebrew/bin/vim

问题消失了。

于 2013-07-09T20:56:23.943 回答