the*_*en8 4 shell git xcode macos
我对 git 比较陌生。任何人都可以帮助正常git rebase --interactive运行吗?当我尝试执行它时会引发错误。
注意:除非不可避免,否则我不想卸载 Xcode(因为某些软件包需要它的工具来编译)。
这是错误:
$ git rebase -i
/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-rebase--interactive: line 234: -w: command not found
Could not execute editor
当然,这个文件是存在的,是一个可执行的 shell 脚本,没有--help选项。
git version 1.9.3 (Apple Git-50)
问题是我git rebase -i没有被告知使用什么编辑器。因此,它通过设置 1 来固定。
让我们声称 out editor 是vim(或nano,或 w/e)。那么要么
export GIT_EDITOR=vim (全球的)
或者
git config --global core.editor "vim" (当地的)
会解决问题。
信用去格伦·杰克曼https://superuser.com/users/4714/glenn-jackman
相关问题 /sf/ask/181776381/
| 归档时间: |
|
| 查看次数: |
5156 次 |
| 最近记录: |