getting the https url of a bitbucket repo from a ssh url

Hello friends:

Thank You for your time and attention in advance.

I am in a situation where I have clone a Bitbucket repo with a ssh url.  It works well.

But for sharing info with other teams and other members of our team I would like to send a https url.

For example I have

ssh://git@bitbucket.es.ad.adp.com:7999/upenv/configuration-values.git

How to get the https equivalent of that aka

https://abcd@bitbucket.es.ad.adp.com/scm/upenv/configuration-values.git

 

Kindly help.

-Narahari

1 answer

0 votes

Hi Narahari,

The best way is for the user to obtain the URL using the UI.

You could also get the Clone URL by using a REST endpoint - no need to use a browser, if that's your situation. I explained that on https://answers.atlassian.com/questions/39424368. Note that the output contains both HTTP and SSH clone URLs.

If the users already have the SSH URL, deriving the HTTP url is easy; as you can see the only difference is the SCM and also the port; you seem to be running Bitbucket behind a proxy which is the reason why you don't specify the port number.

I hope that helps.

Thiago

"The best way is for the user to obtain the URL using the UI."

 

Yes, but how do you do that ?

There is a "clone" button on the sidebar

Thiago,

can the URL be added to the Repository Details page under settings? This is very basic information for a repository that should definitely be easier to find than your suggested methods.

Thanks,

Nick

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

215 views 3 7
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