In SourceTree when switching branches, occasionally it switches as expected. However more often than not, it throws the exception below and I have to close SourceTree and reopen before it will allow me to switch branches.git -c diff.mnemonicprefix=false -c core.quotepath=false checkout My-Branch-Namefatal: Unable to create 'C:/code/myprojectname/.git/index.lock': File exists.If no other git process is currently running, this probably means agit process crashed in this repository earlier. Make sure no other gitprocess is running and remove the file manually to continue.Completed with errors, see above.