git - 完全取消一个rebase

标签 git

我执行了这样的 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 | --quit

关于git - 完全取消一个rebase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22289345/

相关文章:

git - 如何在 Jenkins 执行 shell 中捕获错误?

git - 如何添加本地仓库并将其视为远程仓库

windows - 如何解决 TortoiseGitPlink fatal error ?

git - 如何在 git 交互式 rebase 中将提交与下一个提交 merge ?

git 提交并推送到分支但不 pull 请求

git - 卡皮斯特 pull 诺 git :wrapper keeps asking for ssh passphrase

c# - 使用 TFS 和 Git 管理同一个项目

Git 推送到实时服务器

c# - GIT:修改文件并以相同的日期/时间提交

svn - Git svn rebase : checksum mismatch