Prevent the creation of new branches except from a particular branch.

Hello,

I would like to prevent the creation of new branches unless we are on a particular branch.

Indeed in our current environment we pull our new branches from the preprod branch out when we have new colleagues, sometimes they get it wrong and pull their new branches from a branch other than preprod and that destroys the mess.

Do you know a way to do it?

Thank you in advance

Hi there! :wave: Welcome to the Community!

It isn’t currently possible to restrict branch creation on GitHub in the way that you’d like to, sorry!

We’re always working to improve GitHub, and we consider every suggestion we receive, so perhaps you’d like to submit a feature request through our official product feedback form so that our product team can see exactly how you’d like GitHub to work?

As a separate issue, even if we added a restriction in our web interface to limit branch creation, I don’t think you’re going to be able to prevent people from creating branches locally as Git itself lets you create a branch from any other branch.