Forums

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

Default repository structure

devops2019
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!
October 23, 2019

I am in beginning of learning about bitbucket. I want to configure bitbucket such way that every new repository flows gitflow schema. All necessary branches are created and only certain groups has permission to certain branches.

 

1 answer

0 votes
Mikael Sandberg
Community Champion
October 24, 2019

Hi @devops2019,

Welcome to the Atlassian Community.

Bitbucket allows you to set project defaults that will apply to all repositories within that project. But when you create a new repository, nothing is created in it until you make your first commit. That is when Git will create the master branch. So part of what you are looking for can be configured in Bitbucket, like branch permissions, merge strategies etc. But the initiation of branches and content has to happen via Git.

devops2019
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!
October 25, 2019

Thanks Mike, so I have to first create branches through git and than configured their permission in Bitbucket. 

Mikael Sandberg
Community Champion
October 25, 2019

No, you can configure the branch permissions anytime on the project level. It is only if you set the branch permissions on the repository level and want to use a specific branch name that you first have to create the branch.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events