Missed Team ’24? Catch up on announcements here.

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

How to disable forced push to some git branch?

Ivan P.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2019

Hi, Is there a way to disable forced push to selected git branches? GitLab has such feature OOB, but I could not find that in BitBucket.

2 answers

1 accepted

1 vote
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2019

Hi Ivan,

You haven't mentioned if you're using Bitbucket Server or Cloud, and the options will differ.

For example, if you're in Bitbucket Server you could have a look at Branch permissions, one of the restrictions you could apply is to prevent rewriting history
on specified branches (for example by a force push).

Something similar can be found for Cloud, see Branch permissions. Would that help you?

Ana

Ivan P.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2019

Thank you Ana, this should work for me.

2 votes
Oren Zamir September 5, 2019

@Ana Retamal Hi, How can I disable the "force push" option on the Bitbucket cloud?

Jesse Pepper
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 15, 2021

I would also like to know this.  It doesn't seem like it's possible.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events