Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i abort an ongoing rebase?

Tags:

git

rebase

After a computer restart, when I check the status of a project, I see this output :

$ git status
On branch dev
No commands done.
Next command to do (1 remaining command):
   squash 4fd089c <redacted: 1 month old commit message>
  (use "git rebase --edit-todo" to view and edit)
You are currently editing a commit while rebasing branch '<redacted: deleted branch>' on '1141b14'.
  (use "git commit --amend" to amend the current commit)
  (use "git rebase --continue" once you are satisfied with your changes)

nothing to commit, working tree clean

How do I clear that message? The app is at the same commit stage locally and on the remote repository, and there will never be a need to "amend" or "continue" with this.

like image 696
Yanick Rochon Avatar asked Nov 19 '25 19:11

Yanick Rochon


1 Answers

You are in an interactive rebase state.

So if you are really sure you don't want to do anything then git rebase --abort does the trick.

like image 142
kapsiR Avatar answered Nov 21 '25 08:11

kapsiR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!