Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to mandate pull request to restricted branch? (Bitbucket server) Edited

Hi All,

We are using bitbucket server and have restrictions in place for the protected branches like release and hotfix. Ideally the changes should only be pushed to these protected branch via a pull request. omegle xender But during testing we found that these restrictions can be bypassed by created a hotfix branch locally (from master) and push it to the bitbucket. Which creates a new hotfix branch and updates the code (though the initial state of the branch is different from master). How to stop this from happening and make pull request the only way to push changes to the protected branch?

1 comment

Jimmy Seddon Community Leader Sep 11, 2020

Hi @BenjaminLucas,

This is a tough one, it sounds like you have users that really know how to skit the rules when they need/want to.

I feel like you need pre-push git hooks defined, but that would require people having them added to their machines and respecting the rules.

Anything else I can think for for restricting things would require the branches to exist before you can put any controls on it from the server side of things.

This sounds like the developers might need education on the proper processes and procedures to follow.

I hoe that some part of this offers a bit of help for you.



Log in or Sign up to comment
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,581 views 1 9
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