rebase 因冲突而失败后,我无法使用 Git GUI 客户端继续 rebase 。表演时
git rebase --continue
在命令行 (msysgit 1.7.4) 上,它打开了一个文本编辑器。关闭后,Git 继续。如何避免打开编辑器?
最佳答案
当 rebase 失败时,您必须手动修复文件,然后执行 git add filename
以表示一切正常。此时,git rebase --continue
将继续该过程而不会打扰您。
要更改默认编辑器,git 使用问题:git config --global core.editor new_editor
Commands such as commit and tag that lets you edit messages by launching an editor uses the value of this variable when it is set, and the environment variable GIT_EDITOR is not set. See git-var(1).
关于git rebase --continue 打开编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5314094/