完全取消rebase [英] Completely cancel a rebase

查看:769
本文介绍了完全取消rebase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我执行了如下这样的rebase:

  git rebase --onto master new_background_processing export_background_processing 

这并没有达到我想要的效果,所以我进行了重置:

  git reset --hard HEAD @ {1} 

我的分支恢复到了它的状态,但是当我输入git status的时候我收到了这条消息:

 #你是目前正在'e378641'上重新启动分支'export_background_processing'。 

我如何完全取消rebase?不知道这是什么意思。 使用 git rebase --abort 官方Linux内核文档 git rebase

  git rebase --continue | --skip | --abort | --edit-todo 


I performed a rebase like this:

git rebase --onto master new_background_processing export_background_processing

That didn't do what I wanted it to, so I performed a reset:

git reset --hard HEAD@{1}

I got my branch back to the state it was, but I received this message when I type git status:

# You are currently rebasing branch 'export_background_processing' on 'e378641'.

How do I cancel that rebase completely? Not sure what that means per se.

解决方案

Use git rebase --abort. From the official Linux kernel documentation for git rebase:

git rebase --continue | --skip | --abort | --edit-todo

这篇关于完全取消rebase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆