Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,440 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you