In Bitbucket version (Bitbucket v4.9.1) You can restrict changes by:
- Branch name
- Branch name pattern
- Branch name modelling
Following actions can by restricted:
- Prevent all changes
- Prevent deletion
- Prevent rewirting history
- Prevent changes without a pull request
Enter user that is an exception;