fatal: Unable to create 'C:/Users/Jon/Documents/DoomCarts/.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.
How can we commit?
Hi Dfg,
If you're not running other GIT process, just delete the C:/Users/Jon/Documents/DoomCarts/.git/index.lock file and try again.
Kind Regards,
Henrique Lechner
Correct. Which is what the error message is telling you to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you can't find the .git folder, you may need to change your Windows File Explorer options to show hidden folders, or type the path directly into your address bar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a known bug: https://jira.atlassian.com/browse/SRCTREEWIN-5639
You should open that bug and vote for it, to give it more priority.
As a work-around, use the solution proposed by Henrique Lechner:
If you're not running other GIT process, just delete the C:/Users/Jon/Documents/DoomCarts/.git/index.lock file and try again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get this a lot when switching branch. Sometimes it's enough to just wait a couple of seconds and then try again. Other times I need to Exit SourceTree and start it up again before being able to switch branch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This happened to me and while sourcetree kept telling me the lock file existed, there was no such a file there for me to remove. So I just checked out another branch and then returned to the original branch and noticed this change fixed the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.