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

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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

241 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot