I'm running the command git rebase --continue
and getting an error:
error: update_ref failed for ref 'refs/heads/HEAD-feature': cannot lock ref 'refs/heads/HEAD-feature': is at db50dd34de1e90c0616bf9318be489ee8d9a012a but expected 83f09532b2352418c0f562f48929dc504e6a0452 error: could not update refs/heads/HEAD-feature
I looked at a couple similar questions but none of the answers worked.
I tried the following:
1. git update-ref -d refs/remotes/origin/HEAD-feature
2. git --no-optional-locks fetch --prune origin
3. git gc --prune=now
4. git remote prune origin
The only way I've found to overcome this is to do git rebase --abort
but then I lose all the changes I made during an interactive rebase. Any ideas?