Bird
0
0

You want to ensure that every pull request is reviewed by at least two team members before merging. Which GitHub feature should you configure?

hard📝 Best Practice Q15 of 15
Git - Collaboration Workflows
You want to ensure that every pull request is reviewed by at least two team members before merging. Which GitHub feature should you configure?
AEnable auto-merge on pull requests
BBranch protection rules with required reviews
CSet default branch to feature branch
DUse git stash before pushing
Step-by-Step Solution
Solution:
  1. Step 1: Identify the feature for enforcing reviews

    GitHub branch protection rules allow setting requirements like minimum number of reviewers before merging.
  2. Step 2: Understand other options

    Auto-merge merges without review, changing default branch doesn't enforce reviews, and git stash is unrelated to pull requests.
  3. Final Answer:

    Branch protection rules with required reviews -> Option B
  4. Quick Check:

    Require reviews = branch protection rules [OK]
Quick Trick: Use branch protection rules to require reviews before merge [OK]
Common Mistakes:
  • Confusing auto-merge with review enforcement
  • Changing default branch instead of protection rules
  • Using git stash unrelated to reviews

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Git Quizzes