This is not a valid source path / URL on Mac Client

I am using SourceTree to work with one of the repositories I created online at source tree. When I go to clone repository on my Mac and select the repositories from the hosted account, it gives me the following error:

This is not a valid source path / URL

on checking the details, it says:

fatal: unable to access '/usr/local/git/etc/gitconfig': Permission denied

Any idea what might be the issue?

2 answers

Sounds like an ownership/permission problem on your local git install. Check the ownership and permissions on the listed file, and post here.

I checked that, it shows permission denied on /usr/local/git

I don't think you understood my question. In the terminal, go to /usr/local/git/etc/, and run "ls -l". Your user account will probably need to be the owner of the gitconfig file, or possibly a member of the group (depending on the premission bits of the file). Do you know the name of your user account or what groups it is a member of?

I suspect this isn't a sourcetree problem, and would be better listed as a question on StackOverflow. If you post there, be prepared to try some things in the terminal to diagnose the problem.

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...

840 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