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

This widget could not be displayed.

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 Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,308 views 8 11
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