Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,378
Community Members
 
Community Events
168
Community Groups

is it possible to prevent someone from merging into Master branch?

Hi,

My company is using BitBucket but I do not know if it is using cloud etc.

So, I got into a situation where I was in a detached Head mode.

Since I am quite unfamiliar with git, I did what the Stackoverflow suggestion and do a create tempBranch and then merge it into the master.

Later, I realised that the master is not my cloned Branch which I need to commit to.

So now all my updates is in the master after I checked the bitBucket site.

This led me to wonder if the administrator can actually control no ones can merge into the master ?

I would also appreciate how do i commit to my cloned branch in this situation.

Tks.

 

1 answer

0 votes
Norbert C Atlassian Team Dec 06, 2021

@nobodyIsMe 

Thank you for contacting Atlassian Community, I'm Norbert from Atlassian Bitbucket Cloud Support, it's nice to meet you!

With Bitbucket Cloud it's possible to setup branch permissions: Branch Permissions - Atlassian Documentation 

With the functionality of branch permissions, the administrator of the repository/workspace can control the individuals who can merge and/or write to a specific branch. 

Bitbucket Server also has a similar functionality: Using branch permissions (server) - Atlassian Documentation 

Please let us know if these documentations have helped you to achieve your goal?

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events