gpt4 book ai didi

linux - git rebase 无法执行编辑器

转载 作者:IT王子 更新时间:2023-10-29 00:23:45 24 4
gpt4 key购买 nike

我正在尝试使用 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 config --global core.editor emacs

emacs 中粘贴您的编辑器名称

关于linux - git rebase 无法执行编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17367929/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com