← Quiz: Branching Strategies: all 15 questions
Quiz: Branching Strategies · Question 9 of 15
Which is a branch protection rule on GitHub?
Which is a branch protection rule on GitHub?
- A.Branch names must be lowercase
- B.Require a pull request with at least one approval and passing checks before merging into main
- C.Only one branch may exist
- D.Commits must be signed with a password
Answer & explanation
Correct answer: Require a pull request with at least one approval and passing checks before merging into main
Protection rules stop direct pushes and unreviewed or failing code from reaching main.
Can you get the rest right without peeking?
Take the timed Quiz: Branching Strategies quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →