Encountering the following error in Eclipse/Zend Studio while trying to add files in Git?

Check if a file ‘index.lock’ exists in the .git folder located in the root folder of your project.
If so, remove it and you can continue working!
-
rm .git/index.lock
