Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve this, Exception caught during execution of merge command. org.eclipse.jgit.errors.LockFailedException?

Tags:

git

exception

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

enter image description here

like image 763
Gray Avatar asked May 16 '17 07:05

Gray


2 Answers

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.

like image 67
Gray Avatar answered Oct 09 '22 01:10

Gray


The above solution works really well. Actually, when you read the error message carefully it indicates something like this

  • C:\talend\6.3.1\Talend-Studio-20161216_1026-V6.3.1\workspace.repositories\1015322431.git\talend\master\

index

follow the path your local machine and look for index.lock Go ahead and delete it.

like image 21
kunal deep Avatar answered Oct 08 '22 23:10

kunal deep