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