Create branches at the same time in two/more repositories

I am having C# application containing 20 projects in it, all in the same repository.

I am looking to split this into 20 repositories.

I need a standard way for this. Is that correct to split these many projects into many repositories or keep them all in the same repository ?

If we are going to split this to many repositories, how would a developer create a branch in all the repositories in a single click and clone them in all in his machine ?

I am thinking of git commands to create branches.

Is there any option in-built in the Bitbucket ?


R. Venkatesan

1 answer

As far as Git/Bitbucket are concerned, repositories are managed separately. If you need it, you'd have to create your own tool to create or checkout a common branch name across multiple repos.

Whether separating your projects into separate repos is the right thing is dependent on a lot of factors related to your projects specifically. By using the term "projects", they SOUND like they should be in separate repositories, but I can't imagine a use case where what I would consider separate projects would need identical branch names checked out in unison.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

643 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot