Repository Type: This is not a valid source path / URL

I cannot add repositories to Sourcetree on Windows. This includes opening local repositories (existing) as well as remote repositoreis from Github and Bitbucket. When I try to get more info, a blank popup window appears. I don't know what is going on but I essentally can't use sourcetree on windows.

Other notes: I used cygwin to create the local repository, though I doubt it makes a difference.

Thanks in advance from your help

2 answers

0 votes
Jeff Thomas Atlassian Team Dec 09, 2013

Hi Zach,

This could be related to the version of Git that SourceTree is using. You can check that with Tools > Options > Git and should see the version used at the bottom of the window. Which version of Git are you using and is it the embedded or system Git?

Try updating the embedded Git version and using it.

Windows 10, using Bitbucket Server. I believe my root cause was during the install of SourceTree it failed to unzip PortableGit.7z, even though I have 7-Zip installed and 7z file type association. Resolution was to copy git_local (includes git executables) from a coworker to C:\Users\<me>\AppData\Local\Atlassian\SourceTree\git_local, and that allowed me to enable Tools->Options->Git "Use Embedded Git". This resolved the invalid URL error, though I have no idea how the average user with this unzip failure would find the necessary files.

Separately I also had to do this workaround to allow Bitbucket to open SourceTree:

  1. In the SourceTree menu select Tools->Options
  2. On the General tab, towards the top, I un-checked and then re-checked the “Use this version of SourceTree for URI association” checkbox (You need to do this step even if the checkbox is checked already.) Click OK

This workaround allows Clone in SourceTree to work in Bitbucket.

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

227 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