• Community
  • Products
  • Bitbucket
  • Questions
  • The new branch permissions help does not specify how to stop someone from deleting a branch. Why is this? Do we have the ability to prevent the delete?

The new branch permissions help does not specify how to stop someone from deleting a branch. Why is this? Do we have the ability to prevent the delete?

I want to stop users from messing up and deleting master but the new set up does not allow it.  Why?

1 answer

1 accepted

This is supported with our new branch permissions UI, though I admit it could be slightly confusing. Once you actually populate the "Write access" field with something, options appear to allow or disallow rewriting history and deleting the branch.

Screen Shot 2016-10-12 at 9.40.44 AM.png

By not checking the checkbox labeled "Allow deleting this branch," you can effectively prevent the devs on your team from deleting master (or any other branch).

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,762 views 1 5
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