visual studio – How to prevent creating a new branch of a certain branch


We have these branches in Azure DevOps:

Master <–> development

When we want to do changes we have to make a new branch of the development branch.
Then do our changes, push it for review to the development branch and after approval merge it to the master branch.

We have some projects that do not have a development branch so it happens I create a new branch from the master.
This can give problems if the development is ahead of the master.

Is it possible to set a policy or permission so that you cannot create a new branch from, in this case, the master?
It would then be great if Visual Studio would disallow it.

Leave a Reply

Your email address will not be published. Required fields are marked *