Skip to main content

This version of GitHub Enterprise Server will be discontinued on 2026-08-25. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, 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.

Push rulesets are available for the GitHub Enterprise Cloud plan in internal and private repositories, forks of repositories that have push rulesets enabled, and organizations in your enterprise.

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.