Interview Prep/Git & GitHub/GitHub features, history rewriting and scale

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.

All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub features, history rewriting and scale