Skip to main content

This version of GitHub Enterprise Server was discontinued on 2024-12-19. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

Managing rulesets for a repository

Rulesets help you to control how people can interact with branches and tags in a repository.

Who can use this feature?

Rulesets are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud.

About rulesets

Rulesets help you to control how people can interact with branches and tags in a repository.

Creating rulesets for a repository

You can add rulesets to a repository to control how people can interact with specific branches and tags.

Managing rulesets for a repository

You can edit, monitor, and delete existing rulesets in a repository to alter how people can interact with specific branches and tags.

Available rules for rulesets

Learn which rules you can add to a ruleset to protect specific branches and tags in a repository.

Troubleshooting rules

Learn how to troubleshoot rulesets when you're contributing to a repository.