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

This widget could not be displayed.

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.

This widget could not be displayed.

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 May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

862 views 2 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