We have branch protection rule ‘stable-v*’ to protect existing branches like stable-v1.0 and stable-v2.0, to prevent our team member from pushing into these branch directly. However, this rule can not restrict new branch matching the same pattern to be pushed accidently. Once pushed, the new branch will be protected and not be easy to remove.
As the adminitrator, I have to disable the rule first, delete the branch, then re-enabled the rule.
Is there any method to prevent our team member to push such branch?