How could I make sure that the only branches that are pushed to origin
are:
master
bug/*
feature/*
?
The behavior should be:
- If branch name is allowed (one of the above), the branch is pushed to
origin
. - Otherwise, error message is displayed: "You are not allowed to push this branch"
What would be the easiest way to force this?