当我尝试运行git rebase -i
以压缩我的提交时,我收到以下错误消息:
/usr/libexec/git-core/git-sh-setup: line 112: mate: command not found
git如何寻找编辑器?从git-sh-setup
文件中,我只能看到这个方法:
git_editor() {
if test -z "${GIT_EDITOR:+set}"
then
GIT_EDITOR="$(git var GIT_EDITOR)" || return $?
fi
eval "$GIT_EDITOR" '"$@"'
}