Enabling push rules
Note: GitLab administrators can set push rules globally under Admin area > Push Rules that all new projects will inherit. You can later override them in a project’s settings.
- Navigate to your project’s Settings > Repository and expand Push Rules
- Set the rule you want
- Click Save Push Rules for the changes to take effect