Search code examples
eclipseeclipse-pluginegit

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.


Solution

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

    After i removed that everything worked fine.