It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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!

thanks bro, it realy work !!!

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.

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
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,935 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you