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 vote
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 2.1.2.5 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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

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

562 views 1 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