Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

repository trasfer

Francesco Viscomi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2019

Hi all, i 'm quite new with bitBucket, but i have to move a repository from one location to another. The old repository is hosted on bitbucket 4.14, and the new one should be on bitbucket 5.16.

I follow the following wizard, in the web console, click on "import" after i choose GIT and

insert:

1. Clone URL

2.Username

3.Password

and click on "Import repository" after some time i get the message: "Import failed, the repository was not imported"

 

Can i have some tips on how i can handle it?

thanks

 

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 19, 2019

Hi @Francesco Viscomi,

Welcome to the Atlassian Community.

If you are only moving one repository you can use this command to create a clone from your old server:

git clone --mirror <url repo>

Then go onto your new Bitbucket Server and setup a new repository. Once that is done, add the URL to your clone:

git remote add new_origin <url to NEW repo> 

Now push everything to your new Bitbucket Server:

git push new_origin --all
git push --tags 

Note that you can name new_origin something else if you want to, it is just a short name for the URL to the new server.

Also note that this will not move any of repository settings, pull requests etc that you have on your old server. In order to do that follow this guideline, Migrating Bitbucket Server to another server

Francesco Viscomi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2019

thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events