Open GoogleCodeExporter opened 9 years ago
[deleted comment]
I have a slightly easier workaround for anyone (like me) who may have run into
the same issue.
Once you get the "No such file or directory" error, create a new branch with
the same name as the abandoned one using:
repo start <label> .
Then, run the abort again:
git rebase --abort
You should now see a new error, something like:
error: Ref refs/heads/<label> is at b300fabbeba06f154a3f026dedd9aef0210755ae
but expected 74511c2d9b18a40575c7054eb2c0e2e3fecab7c7
fatal: Cannot lock the ref 'refs/heads/<label>'.
Could not move back to refs/heads/<label>
You can clear this by updating the ref:
git update-ref refs/heads/<label> <expected# from the above error>
At this point, you should be able to abort the rebase with one final:
git rebase --abort
Original comment by MMorg76...@gmail.com
on 9 May 2011 at 6:38
Original issue reported on code.google.com by
malc...@gmail.com
on 11 Nov 2009 at 11:26