I would like to create a "pre-branch" hook that blocks users from creating a branch with a name that matches a given regex expression if another branch already exists with a name that matches that same expression.
Optimally, this could be hosted locally and trigger before the user ever touches the remote repo, but I am open to any method that would prevent a branch with the undesired name from being created on the remote (pre-push or pre-receive hooks maybe?)
Just moving over to git, so please treat my knowledge of git hooks as extremely novice.
Thanks!