BitBucket-Cloud: How to create template repositories?

Hi,

I want to create templates of repository to be able to have the same branch permissions and any repository settings. That will save a lot of time and allow to spread easily a strong process.

I see that a tool (https://marketplace.atlassian.com/plugins/ch.mibex.stash.templates/server/overview) is available on Atlassian Market Place, but only for BitBucket server, not for Bitbucket-cloud.

I thank you for your help.

Philippe

1 answer

1 accepted

1 vote

Hi Philippe! At the moment, there's not such a feature in Bitbucket Cloud to create repository templates. As a workaround, what you can do is create a new repository with the settings you'd like it to have, clone it, and then copy it as many times as you need it. 

Hope that helps,

Ana

Hi Ana,

Thanks a lot for your answer,

Sorry I just discover it. Not sure when you posted it!

Yes I already thought to use this workaround. I understand, except if I'm wrong, that this workaround will work for a new blank repository you are creating, but what about an existing repository hosted somewhere else we just want to transfer to BitBucket? Is this workaround working also? Or settings of existing will erase "template" settings?

PS: you said that "at the moment there's no such a feature in BitBucket" does it mean that could be the case in future update? If yes, when could we expect having it? I believe that the needs exist!

Thanks for your support.

Philippe

Hi Philippe, no worries!

Yes,  this workaround will work for a new blank repository you are creating, but it won't work for a repo you're transferring to Bitbucket. It's not possible to apply a template to an already existing repository. If you're importing an existing repo to Bitbucket, you'll need to set up the new settings/branches manually.

What I meant is that at the moment this is not something Bitbucket do, but that doesn't mean it will always be this way :) I don't know if this is something our developers are planning to implement, though, but we're open to suggestions. If you'd like, you can submit your idea as a Feature request to our public Issue tracker.

Let us know if you have any questions :)

Ana

Hi Ana,

I thank you for your reply.

It's confirmed my understanding. So at least I understand main principles ;-)

As the tool exists for the server version on the Atlassian marketplace, I believed there is the same need for the Cloud version. So I'll suggest it in your public Issue Tracker.

Let see...

Thanks, for your support,

Philippe

Glad I could help you @Philippe Chaudun. Remember to 'watch' the suggestion once you create it, so you receive further updates in the future :)

Have good day!

Ana

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

27,483 views 26 12
Join discussion

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