Permission denied when trying to pull

I have Sourcetree installed on my Mac OSX and it's running smoothly on my machine.

I'm trying to help a co-working resolve an error she's getting when using Sourcetree.

When she clicks the Pull button, she gets a fatal error: cannot create directory Permission Denied. See attached image.

The error doesn't seem to be related to the SSH keys. She can do git push, but not git pull. Every time she needs to pull, she has to do it through the Terminal using sudo.

How can we fix the error?

2 answers

1 accepted

4 votes
Accepted answer

Check ownership/permissions on her local directory.

If I change the permissions of her local directory, wouldn't that change the permissions on the repo?

It might, but if her user isn't allowed to write to those directories/files, SourceTree won't be able to pull.

Had to change the permissions of the "staff" group for that directory to Read/Write

So I don't get any credit for helping you figure this out?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

718 views 3 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you