Completely cancel a rebase

前端 未结 4 1175
自闭症患者
自闭症患者 2020-11-28 02:30

I performed a rebase like this:

git rebase --onto master new_background_processing export_background_processing

That didn\'t do what I wan

4条回答
  •  抹茶落季
    2020-11-28 02:58

    You are lucky that you didn't complete the rebase, so you can still do git rebase --abort. If you had completed the rebase (it rewrites history), things would have been much more complex. Consider tagging the tips of branches before doing potentially damaging operations (particularly history rewriting), that way you can rewind if something blows up.

提交回复
热议问题