Git rename from index.lock to index failed
In my case, this was caused by using the same Git repo from both admin and non-admin command prompts. When last git pull
was from admin cmd, the index
was created by it, and then non-admin cmd had insufficient permissions to modify it.
My solution was re-creating the index
(while keeping the worktree intact):
del .git\indexgit reset --mixed head