When I pull using git this exception appears and I don't know what its say that Cannot lock /home/user/location/.git/index.
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of merge command. org.eclipse.jgit.errors.LockFailedException: Cannot lock /home/user/location/.git/index
For a record, Yes I already solved it, I just manually deleted /home/user/location/.git/index.lock. It works for me, but just remember you can find your .git/index.lock to the location where you've installed your git.
The above solution works really well. Actually, when you read the error message carefully it indicates something like this
index
follow the path your local machine and look for index.lock Go ahead and delete it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With