GitHub Branch naming standard

We have repositories where developers are accessing and creating their own branches.

But we want to apply a rule, where developers can create a fixed/standard or defined naming convention, not like their own branch names.

They shouldnt not create any branch names other than what we have defined.

Can someone please suggest me how can we achieve this.

Thanks in Advance.

You may be able to use Git hooks but I’m not sure how well that would work. In terms of GitHub, you might have to make an application that denies pushes that create branches not matching your naming scheme; I don’t know of any built-in functionality.