我执行了这样的 rebase :
git rebase --onto master new_background_processing export_background_processing
这并没有达到我想要的效果,所以我进行了重置:
git reset --hard HEAD@{1}
我让我的分支恢复到原来的状态,但是当我输入 git status 时我收到了这条消息:
# You are currently rebasing branch 'export_background_processing' on 'e378641'.
如何完全取消该 rebase ?不确定这本身意味着什么。
最佳答案
使用 git rebase --abort
。从 official Linux kernel documentation for git rebase
:
git rebase --continue | --skip | --abort | --edit-todo
关于git - 完全取消 rebase,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22289345/