Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: Unable to create '/.git/index.lock': File exists

Tags:

xcode

xcode4.5

When I try to rename any image name in my Xcode Project it gives following error.

fatal: Unable to create '/.git/index.lock': File exists. 

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

Don't know what is going wrong. Thanks in Advance.

like image 648
Desert Rose Avatar asked May 17 '13 06:05

Desert Rose


2 Answers

Try

rm -f ./.git/index.lock

In your repository directory.

like image 91
Deepesh Gairola Avatar answered Nov 15 '22 22:11

Deepesh Gairola


I had my local repo inside a Wordpress plugin folder hosted by Mamp on osx. The permissions for the local server was set to "www" in the Mamp permission settings. I changed the permissions back to me, and the "/index.lock“ needs to be removed manually."-problem went away.

like image 30
bonsak Avatar answered Nov 16 '22 00:11

bonsak