Intermediate
Git & Version Control
Q79 / 100
What is the significance of a "protected branch" on platforms like GitHub?
Correct! Well done.
Incorrect.
The correct answer is A) A protected branch (often the main/production branch) has rules enforced by the hosting platform, such as requiring pull request reviews, passing status checks, or preventing force-pushes and direct pushes, before changes can be merged
A
Correct Answer
A protected branch (often the main/production branch) has rules enforced by the hosting platform, such as requiring pull request reviews, passing status checks, or preventing force-pushes and direct pushes, before changes can be merged
Explanation
Branch protection rules are a hosting-platform feature (GitHub, GitLab, etc.) layered on top of Git, used to enforce team workflows like mandatory code review before merging into important branches.
Progress
79/100