Not every time, but quite often, I get this fatal error when trying to switch branches in my repository:
git -c diff.mnemonicprefix=false -c core.quotepath=false checkout <branch-name>
fatal: Unable to create 'D:/Evi/Source/Git/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
I think the problems started after I updated the Git-for-Windows version from 1.9.5 to 2.5.x and prevailed in 2.6.x. Restarting SourceTree solves the issue (temporarily). I noticed that the latest SourceTree version 1.6.22.0 still downloads the 1.9.5 preview version when I try switching to Embedded Git.
So, is this an incompatibility issue of SourceTree with Git-for-Windows 2.x? A Fix really would be appreciated since having to restart SourceTree gets quite annoying. The issue exists on multiple machines in our company.