Cloning repository error: This is not a valid source path/ URL (Mac OSX, SourceTree 2.4)

Hello everyone,

I have been trying to clone a repository created with the C4Science service, without any success. Whenever I input the URL, either the https or ssh, I get the error: "this is not a valid source path/URL". The https log shows up empty, while the latter yields the following: 

"fatal: 'git@c4science....' does not appear to be a git repository

fatal: Could not read from remote repository."

I have tried using the system Git (version 2.10), then resetting to the embedded one (2.8). I have linked my GitHub, Atlassian and C4Science accounts (perhaps there was an authorization issue). I have tried a clean install of all SourceTree, Git, mercurial, even updated Python (for Mercurial). I have also tried deleting my SourceTree Library files in order to reinitialise the first set up wizard, to no avail. 

My colleagues managed to clone the repository from a fresh install with no issue, following the exact same installations steps as given in the documentation. Also note that we all skipped the original BitBucket/GitHub login step during setup. Is there something I am missing? Any help with this issue would be appreciated.

More info:

SourceTree V 2.4

OSX El Capitan V 10.11.6



EDIT: Solved! I just had to install version 2.3 of SourceTree and it worked immediately.


5 answers

I had the same issue!

You have to open up preferences(cmd+,) then go to the accounts tab and click on the account you want to use, then click "Edit" and locate where it says Protocol if that is set to SSH you have to change it to HTTPS.

That fixed the issue for me.

This was already set for me, didn't solve the issue unfortunately.

That unfortunately didn't work for me when I tried it.

What solved it in the end was giving up on Version 2.4 and installing 2.3 instead. It worked instantly with the previous version.


Hope that helped!

This seems to be broken for me as well with version 2.4 on mac
I tried to swap the account to default and to https but had no luck, I'm still getting the same error. 

Switch to authentication mode from OAuth to Basic. It will work!

Thanks! That fixed the issue for me.

preferences > accounts > edit > oauth to Basic 

and SSH to HTTPS 

fixed this for me!

@Andre dos Santos were you ever able to resolve this?

I face the same issue, I will try 2.3. What's wrong with 2.4 ??? 

I have the same issue with v2.4 and now I'm trying to downgrade to 2.3 where everything worked just fine..

How do I downgrade to v2.3? I cannot seem to find a download link, I found a list for Windows, but nothing for Mac yet.

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

229 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