Branch protection and ruleset rules: which rule enforces what
This sheet compares Require pull request, Require status checks, Block force pushes, Restrict deletions, Restrict creations.
| Criterion | Require pull request | Require status checks | Block force pushes | Restrict deletions | Restrict creations |
|---|---|---|---|---|---|
| What it enforces | Every change goes through a pull request before merging | Specified checks must pass before merge | Prevents overwriting commit history via force push | Prevents deleting a matching branch or tag | Prevents creating a new matching branch or tag |
The verdict, the full comparison, 5 rules and 4 traps are part of GH-100 access. Unlock GH-100.