Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (27.5k points)

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.

1 Answer

0 votes
by (27.5k points)

I think you are lucky that you didn't complete the rebase, that means you can still do git rebase --abort. 

$ git rebase --abort

Now if you had completed the rebase (which would have re-written the history), things would have been much more complex. 

Related questions

0 votes
1 answer
+1 vote
1 answer
+4 votes
1 answer
0 votes
1 answer
asked Jan 31, 2020 in DevOps and Agile by anmolj (9k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...