git - 使用 git rebase --edit-todo 修复脚本后要做什么?

标签 git git-rebase

我运行了 git rebase -i mytag 并且基于 git's reference , 使用关键字 drop 而不是删除一行。好像我的版本(2.5.4)不支持它,所以我得到了这个错误:

Unknown command: drop aaabbbbccccddddd Update README.md 
Please fix this using 'git rebase --edit-todo'.

运行推荐的命令后,我删除了添加 drop 的行,保存并退出编辑器。我希望 git 会继续之前的 rebase 过程或者让我知道下一步该做什么。相反,我的 CLI 上没有显示任何消息。

最佳答案

要继续之前的 rebase 过程,只需运行 git rebase --continue

关于git - 使用 git rebase --edit-todo 修复脚本后要做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35163469/

相关文章:

git - 在有人将 rebase 或重置推送到已发布的分支后,我如何恢复/重新同步?

git rebase : merge notes into commit message

git - 如何只保留 git rebase 中的头部更改

git - 如何使用 git rebase 压缩 merge 周围的提交?

git - 如何使用 rebase 编辑推送的提交消息?

git - 让 git 只是*复制*(而不是 merge )?

php - 使用 composer 开发库的最佳方式是什么?

git - 如何强制 "git commit -m"打开编辑器

Git 镜像为 "gateway repository"

git - 我如何告诉 Git 在获取/pull 时忽略某些分支?