Replicating Stash branch permissions

We have write and admin groups for each project.  The idea is to setup the repos so that only admins can write (push) to the master branch, but write users can write to the rest of the branches or even create new ones.


We can go into the settings of each individual repo and create a permission for the master branch, but is there a way to do this at the project level so that it does not have to be repeated for every repo?  Maybe it is something simple that is being missed, but we haven't been able to figure out how to do it quickly.

3 answers

1 accepted

I think what you are looking for are some kind of templates on creating a new repository within a project.

There have been several long standing requests for Repository templates, but they aren't available yet:


And finally (to be a little polemic):

Thanks. This is disappointing, but it is what I needed to know. Will definitely vote on it as well.

Hi Lucas,

The Branch permissions are actually restrictions, which are checked after project and repository level permissions. They were thought to be used to limit branch access to specific people who must still have write access to the project or repository.

For example, if two developers Xavier and Yves have write access to repository R, but only Xavier has branch permissions on branch B, then Yves won't be able to push to B.

You can read more about it:

I hope the concept is clearer now. smile


@Thiago Bomfim If the branch permissions are restrictions, why can I not see a branch created by another developer through SourceTree until I add an advanced permission?

i.e., `*` branch -> "all devs group"

By default, shouldn't all with permissions to read the repository be able to see that branch until I put a "restriction" on it, as you say?

Suggest an answer

Log in or Join to answer
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...

652 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot