I think I squashed the last 40 commits using rebase. I was following this guide to make sure I didn't do anything stupid - http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
The problem is, I think I did something stupid.
The (interactive) text file couldn't be saved, so it seems that the rebase failed but the message it gave and some other things below suggest it might have worked.
Not sure where I am or what to do (or even what my name is). Here's what I did:
The command line shows some sort of success (unfortunately I've lost the message). I don't know how it could succeed or know where the file I saved is...
git rebase --continue says "No rebase in progress?
git reflog suggests it worked (from what I know at least, the word 'rebase' is showing on the last 40 odd commits) eg:
9992445 HEAD@{8}: rebase: reports working
git log
shows all 40 commits I just 'rebased'This isn't looking good. Does anyone know what state I'm in? Am I in limbo, was this a zombie rebase?
If the rebase "todo list" couldn't be saved, your rebase didn't work.
The easiest way to squash that many commits would be to do git reset --soft HEAD~40
and then git commit
with your new message - assuming you want to squash all of them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With