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

0 answers

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