Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Egit Failed to commit

I got Eclipse for PHP developers 3.0.2 With Egit 2.2.0 installed, and I am on windows 7 I got my project and repository set up and linked. Yet i cant commit changes. this is the error i get:

Exception caught during execution of add command
   Exception caught during execution of add command

I got Git for windows installed and set that in the Git configuration. I also got my HOME variable set up with %USERPROFILE%

Also my project location is on a remote server that i mapped to Z:

This includes the git repo as well.

That remote location has Lubuntu 12.10 installed. It has git installed as well.

like image 547
NaGeL182 Avatar asked Feb 03 '13 11:02

NaGeL182


2 Answers

Thanks to @NaGeL182.. I got it working now because Git locked

So I need to delete the .git/index.lock file

  1. On Mac just Hit below command On Terminal

rm -f ./.git/index.lock

on Windows

del .git\index.lock

Hope this will help.

like image 138
swiftBoy Avatar answered Oct 13 '22 16:10

swiftBoy


I found what was the problem. Git locked it self witha file in the ./git/index.lock

After i removed that everything worked fine.

like image 35
NaGeL182 Avatar answered Oct 13 '22 16:10

NaGeL182