Closed
Description
Feature Description
I had the same question that someone asked for GitHub here:
I was wondering if there is anyway to restrict the branch creation in
GitHubGitea. I have 4-5 branches created for a repo and would like to maintain it that way.
The idea is that developers work in their own repositories and merge into the main repository and branch through pull requests. Without the option of accidentally or willingly creating new branches in the main repository.
The answer given is that as of May 2022 GitHub has a branch protection setting named Restrict pushes that create matching branches. Adding a rule *
will prevent the creation of any new branch.
It would be awesome if Gitea could support the same.