← Quiz: Git Workflow and Interview: all 10 questions
Quiz: Git Workflow and Interview · Question 5 of 10
Why do teams protect the main branch?
Why do teams protect the main branch?
- A.To make Git faster
- B.So changes only arrive through reviewed pull requests with passing checks
- C.To stop people from cloning
- D.Because GitHub requires it
Answer & explanation
Correct answer: So changes only arrive through reviewed pull requests with passing checks
Protection prevents untested or unreviewed code from reaching main.
Can you get the rest right without peeking?
Take the timed Quiz: Git Workflow and Interview quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →