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?
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
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