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

This widget could not be displayed.

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

This widget could not be displayed.

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

889 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