Forums

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

is there any way to share code between bitbucket cloud and bitbucket server?

Marlene Cote June 6, 2018

we have 2 software teams.  one team is using bitbucket cloud and the other is using server.

How would they share their code modules easily?  is it just a matter of cloning a repo from the right place and using the code in their development regardless of its location?

or are there other things to think about or ways to do it that are cleaner/smoother, less error prone?  Integrations, etc?

2 answers

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 16, 2018

Hi @Marlene Cote,

One option is to integrate the two applications by setting up a Smart Mirroring for Bitbucket Cloud. In this way you can mirror the Bitbucket Cloud repository to Bitbucket Server.

 

For the opposite direction, some customers use the Repository Mirror Plugin for Bitbucket add on.

 

Setting up the git remotes is also an alternative, but it requires every user to keep that in mind when cloning the repository or performing a push (at the latest). The options above let the applications manage the synchronization of the repositories via git hooks on the server.

 

Cheers,
Caterina - Atlassian

0 votes
Mikael Sandberg
Community Champion
June 6, 2018

Hi Marlene,

And welcome to the Atlassian Community.

Yes, you can share repositories between Bitbucket Cloud and Bitbucket Server. Have a look at Git Basics Working with Remotes it describes how you can do it. All you would have do to in Bitbucket is create the repository first.

Marlene Cote June 6, 2018

thank you.  of course, I forgot about the fact that this is just git. :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events