git rebase --continue 打开编辑器

标签 git git-rebase

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/

相关文章:

git rebase 实现细节

git - 压缩 Git 中的前两个提交?

git - 将一个分支中的所有缺失提交 rebase /复制到当前分支之上

git - rebasing 分支,有自己的分支

git 将远程跟踪分支添加到裸仓库

git - .git/rebase-apply 的内容是否记录在案?

git - 如何在 SourceTree 中的两个 Git 提交之间导出所有更改的文件?

GitLab克隆不成功

git - 忽略的文件显示在未暂存提交的更改中

python - pip install --editable 使用 VCS url