invalid url format

I am unable to add a Bitbucket self hosted site to sourcetree using the ssh option. I keep getting an invalid url format error.

7 answers

I don't suppose you are willing to post the URL so we can proofread it for you.

Assuming you didn't remove the error text in the process of removing sensitive info, that looks fine to me. Maybe it's choking on the port specification for some reason? What error message do you get if you try the same URL without the port (I'm assuming SourceTree validates the URL before checking for a Git repo at the URL)?

There is no error message in that URL and all i have changed in the URL is the actual name of the Web site and the name of the git repo. 

with or without the port I still get the same error message saying that the URL is malformed. I have tried removing the git@ as well but no luck


BTW just to be clear, I get this error while i try to register a new remote account. cloning the repo actually works fine. 


Ah, that's not something I've done before. Is it this popup:

image2016-5-18 8:43:18.png

You might try the HTTPS Url, only put your username in the username box (not the URL), and make sure Preferred Protocol is SSH. IDK if the extended integration API can communicate over SSH. It may require HTTPS, but use SSH for all git communication.

My server doesn't have https at the moment. and for some reason sourcetree doesn't like that

My best guess is tha HTTPS is required for the extended integration stuff. I'm leaving this as a comment for now since I don't really know what I'm talking about. Maybe someone else will have a more concrete answer.

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

1,229 views 4 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