Thursday, February 25, 2016

Git - fatal: Unable to create '/.git/index.lock': File exists.

Every now and then I see this annoying error when I try to switch between branches using SourceTree for Git: Git - fatal: Unable to create '~/.git/index.lock': File exists.



One easy fix is to open git bash and execute this command: rm -f ./.git/index.lock

No comments:

Post a Comment