Bitbucket: How do I set branch permissions?

I'd like to be able to set branch permissions for my Bitbucket repos. I want to restrict access to certain branches for some team members.

Is this possible?

3 answers

1 accepted

1 vote
Jason Worley Atlassian Team Mar 14, 2013

Greetings!

Although we do not support granular permissions on branches, a previously suggested approach would be to fork the repository, providing the Release Manager access to the fork.

The fork can inherit or have its own permissions. As part of the release, you could ask the manager to pull incoming changes from the parent.

This information can be found here if interested:

https://confluence.atlassian.com/display/BITBUCKET/Branching+a+Repository

I hope this response was helpful.

Cheers,

Jason | Atlassian

The lack of "push" write access control per branch, or at least to a single ("master") branch, is causing is a lot of trouble. What are the odds of this appearing? We're trying to decide whether to endure for a while (and manually push -f back a bad commit in master every few days), or look elsewhere.

We're tracking adding Branch permissions on this issue. Please feel free to comment on the request!

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,739 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