Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

clone url for importing existing git repo in bitbucket

Deleted user May 25, 2018

Hello, I'm trying to import our existing git repo into bitbucket.

In the Import promt of bitbucket I specify the clone URL as :

git clone git+ssh://our.git.server/d2/git/pending/vp

 

We use this often to clone our git to local repos.

Unfortunaltly Bitbucket does not accept this URL. It says : Please provide a valid clone URL.

 

What is wrong with tis clone URL ? what exactly doe Bitbucket expect here?

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2018

Hi Jan,

Have you tried using

ssh://our.git.server/d2/git/pending/vp

as the clone URL? What you specified looks like a clone command rather than a URL.

Cheers,

Christian

Deleted user May 25, 2018

Hello Christian, 

 

  Thnx for your response.

 

Specifying 

             ssh://our.git.server/d2/git/pending/vp

  or      git+ssh://our.git.server/d2/git/pending/vp

does not make a difference .  Still same error.

I already posted a support ticket  with Atlassian.  Waiting for their response also..

 

Regards,

Jan

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2018

Are you providing a username in the prompt?

Deleted user May 27, 2018

yes , username and password are provided but it is still rendering the url-field in error. The only way to get rid of the error is to specify  http or https  as protocol instead of git+ssh  or ssh.

 

Regards,

 

Jan

Deleted user May 31, 2018

I received a workaround from the atlassian support team that basically says:

1) create a new repository in BitBucket

2) clone the source git repo  with the --mirror option

3) change the remote origin url to the url of the new bitbucket repository

4) push  the complete repo to bitBucket using the push -u origin --mirror options

 

We are currently using an older (4.12) version of Bitbucket. I will try this again after upgrading to a more recent version of BitBucket

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events