What is a branch protection rule versus a ruleset?
IntermediateConceptGitHub features, history rewriting and scale
Answer
Branch protection is the classic per-branch-pattern setting (required reviews, status checks, no force-push). Rulesets are the newer layer: multiple rulesets can stack, apply to branches and tags, target by pattern across many repos at org level, support bypass lists and can run in evaluate (dry-run) mode first.
More on GitHub features, history rewriting and scale
What does a GitHub Actions workflow look like at a basic level?BeginnerWhat are GitHub environments and what protection do they offer?IntermediateWhat is a GitHub Release and how does it relate to a Git tag?BeginnerWhat are the permissions of `GITHUB_TOKEN` and how do you restrict them?IntermediateWhy do fork PRs get no secrets, and what is `pull_request_target`?AdvancedWhat is the difference between a GitHub fork and a clone?Beginner