Best way to migrate from Stash to Bitbucket

My team is moving from Stash to Bitbucket.

What is the best way for us to move? I have tried Import repository but since the Old repository is on a server behind a firewall Bitbucket can't access it.

From this https://answers.atlassian.com/questions/258495/migrating-from-stash-to-bitbucket I assume it is not possible to migrate directly from Stash to Bitbucket and have our pull requests, comments, etc migrated (please add this feature asap)

Should I checkout repos to my local computer and then import that in Bitbucket? And the next step would then be to have all developers change their git/SourceTree settings so that the remote/origin will instead be the Bitbucket-hosted git repos instead of the current Stash-hosted repos?

We have about 6-8 repositories to move. All of these are within 1 project in Stash. In Bitbucket I cant see any concept that easily maps to the Project level in Stash. The closest I could find is the Team concept.

We also want JIRA integration from an on-premise JIRA. If we add a JIRA link will that be per Team or per Repository?

2 answers

1 accepted

Accepted Answer
0 votes

This is the best solution I can find: http://www.smashingmagazine.com/2014/05/19/moving-git-repository-new-server/

It looks like you need to checkout all the branches from stash locally, but you don't have to individually update the remotes, you can push all.

Don't worry about freezing commits, just pushes. Once you've got the new repo set up, your devs can switch remotes, then push anything that didn't get migrated by you.

And also, what about branches? If I want to move all existing feature branches, I have to clone each feature branch and change the remote. Meaning I have to get all developers to push their feature branches to Stash, then we have to freeze all commiting, then I move the repos, and then all developers have to change remote. Is there not a simpler way?

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

2,340 views 9 12
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