### Restrict branch names

If your company has a strict policy for branch names, you may want the branches to start with a certain name. This approach enables different GitLab CI/CD jobs (such as feature, hotfix, docker, android) that rely on the branch name.

Your developers may not remember that policy, so they might push to various branches, and CI pipelines might not work as expected. By restricting the branch names globally in Push Rules, such mistakes are prevented. All branch names that don’t match your push rule are rejected.

```text
(main|develop|((feature|bugfix|hotfix)\/.+))
```

https://docs.gitlab.com/ee/user/project/repository/push_rules.html#restrict-branch-names
