Andrea Andrea - 4 months ago 104
Git Question

fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory

I was going to do a rebase to delete my last commit but I didn't want to finish so I exited. (I realize this probably was not the best way to go about it, but it's done) I guess I did it wrong because I am getting the error:

fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory
every time I run
git status
. How do I get rid of this error so I can continue making commits? Can I just delete the file? If I can delete it, how would I do that?

Answer

Try to do a git rebase --abort