In Bitbucket, administrators may want to protect the master branch to ensure stability by preventing users from deleting or rewriting it (e.g., through forced pushes). However, they also want to allow users the flexibility to create new repositories under the same project without needing admin permissions on each repository.
Key Requirements
- Restrict Deletion of the Master Branch: Ensure that users cannot delete the
master branch across all repositories within a project. - Prevent Rewriting of the Master Branch: Block users from performing force pushes or other actions that would rewrite the history of the
master branch. - Allow Repository Creation: Grant users the ability to create new repositories within the project with master branch.
Currently users are able to create repository master isn't created and they can create\push it. I want them only to create new repository with master.