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

Not allowed to rewrite history for feature branches

Jennifer MARTINOT
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!
September 27, 2024

Hello!

The same question was asked two years ago but didn't get any response : https://community.atlassian.com/t5/Bitbucket-questions/remote-History-rewrites-not-allowed-on/qaq-p/2017760

 

I’m encountering the same issue, we have certain branches, like release or master, where we don't want to allow history rewrites.

However, for feature branches, we'd like to enable history rewriting to maintain a cleaner commit history before merging.

 

The "Allow rewriting history" checkbox is enabled for the relevant branch patterns, but when we try to force push a feature branch, it is rejected by the remote (pre-receive hook declined).

 

Am I missing something in the configuration?

 

Thanks in advance,

Jennifer

1 answer

0 votes
vikram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 30, 2024

Hi @Jennifer MARTINOT 

Welcome to Atlassian Community. 

If you have a paid subscription application then you can raise support ticket directly to Atlassian Team from below url, so that you will get the answers as quick as possible or ASAP and there will be a track of your request. 

https://support.atlassian.com/

Vikram P 

Jennifer MARTINOT
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!
September 30, 2024

Thank you for your response, I will ask the Atlassian Team for my issue :-) 

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 30, 2024

Hi @Jennifer MARTINOT 

I've not yet noticed a ticket raised with our team - did you need me to raise one on your behalf? I will need to know your timezone so I can ensure that your request is routed to the correct team in your area.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events