Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict creation of branch by user in bitbucket cloud

skaul
November 19, 2025

Is there a native way in bitbucket cloud where users can be prevented to not have capability to create branches that doesnt start with feature/* , bugfix/* , user/* etc. 

 

So i see that if i open the add branch restriction i can restrict branch creation by putting in a regex and give no one a write permission hence user not being able to create any branches.

branch_restriction.PNG
So my question is what should be the value there so that users are not able to create branches that dont start with.

1. feature/*

2. bugfix/*

3. hotfix/*

4. develop

5. user/*

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2025

Hey @skaul 

If I understand correctly, you want to prevent anyone from creating branches with specific names. If that's the case, the settings shown in your screenshot are correct. However, you'll need to create a separate branch restriction for each name pattern you want to block.

For example, using develop/* as a restriction will prevent anyone from creating branches like develop/<BranchName>.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events