Apologies for the confusing question, I'm not sure how to describe it generally. I typed git rebase master
to place my 4 commits in my current branch at the end of master's history.
But instead I am stuck in a state that says:
user@CPUNAME MINGW64 /d/Code/ClientRepo (branchName|REBASE 5/4)
5/4? How can I be 5 commits into the rebase if there are only 4 commits TO rebase?
git rebase --continue
gives me the output: fatal: cannot resume: .git/rebase-apply/final-commit does not exist.
git rebase --abort
seems to work, but after the command completes I still see branchName|REBASE 5/4
indicating the rebasing never aborted.
Totally stuck. Advice politely requested.
Edit: I have since unblocked myself by re-cloning the repo into a different directory. This meant that I lost my commits. Thankfully, there weren't too many changes and I re-created them.
However, I still have the old directory stuck in this state and am very curious what the fix might be as I've never seen this situation before. I'm leaving the question open and will try out suggestions - perhaps a potential answer could help someone else in the future.
Now, the main questions are, what could possibly lead to this state and how to unravel it?