首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如果--abort不起作用,如何中止交互式rebase?

如果--abort不起作用,如何中止交互式rebase?
EN

Stack Overflow用户
提问于 2011-02-24 20:28:43
回答 1查看 161.5K关注 0票数 130

我通过一个交互式的rebase把自己搞得一团糟,现在我想放弃它。(也就是说,回到我被拖入交互式rebase模式之前的位置,在我的例子中是通过git pull --rebase。)实现这一点的方法似乎是通过git rebase --abort,但这并不起作用:

$ git rebase --abort
error: Ref refs/heads/master is at 55b388c141b1485b1acd9e050dbeb0eb90ef2ee7 but
expected b918ac16a33881ce00799bea63d9c23bf7022d67
fatal: Cannot lock the ref 'refs/heads/master'.
Could not move back to refs/heads/master

如何才能退出交互式的rebase模式,并清除对它的所有引用?(git reset --hard成功了,但不会让我退出rebase模式)。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5104649

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档