fatal: Unable to create '...index.lock': Permission denied

William Melatini February 27, 2015

hi, i'm trying to use sourcetree to manage my local mamp pro site. so with git and sourcetree installed i use my local development directory as a workging-directory. when i try to check unstaged file i get this error:

fatal: Unable to create 'developmentsite.dev/.git/index.lock': Permission denied

i check the permision on this directory and the mac user (me) and _www user (mamp pro) can write and read on this directory.

so what can i do to resolve the problem?

3 answers

4 votes
Shivali Bari May 26, 2016

I was having same issue. try to execute commands as root user. When I tried git checkout it was not working. But when I used it with sudo it worked!

vlad-004 November 20, 2019

thanks bro, it realy work !!!

0 votes
William Melatini February 27, 2015

On the web the issue is that index.lock is still exist. My problem is that i can't create this file for a permission issue.

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 27, 2015
William Melatini February 27, 2015

On the web the issue is that index.lock is still exist. My problem is that i can't create this file for a permission issue.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events