GH-100 · Question #58
Which of the following actions can a user with Write permissions perform in a GitHub repository?
The correct answer is B. Push code to non-protected branches. Users with Write permission can push code to non-protected branches (B), which is the core capability that distinguishes Write from Read access - it allows contributing code directly to the repository. Why the distractors are wrong: A (managing labels, GitHub Pages) requires…
Question
Which of the following actions can a user with Write permissions perform in a GitHub repository?
Options
- AManage repository settings, such as labels and GitHub Pages.
- BPush code to non-protected branches.
- CConfigure branch protection rules.
- DDelete the repository.
How the community answered
(25 responses)- A4% (1)
- B92% (23)
- D4% (1)
Explanation
Users with Write permission can push code to non-protected branches (B), which is the core capability that distinguishes Write from Read access - it allows contributing code directly to the repository.
Why the distractors are wrong:
- A (managing labels, GitHub Pages) requires Maintain permission, which sits above Write.
- C (branch protection rules) is a Maintain or Admin action - it controls how branches are protected, not just written to.
- D (deleting the repository) is exclusively an Admin privilege, the highest level.
Memory tip: Think of GitHub roles as a staircase - Read → Write → Maintain → Admin. Each step unlocks more destructive or structural power. Write is about contributing code; anything that shapes the repo's rules or existence requires climbing higher.
Topics
Community Discussion
No community discussion yet for this question.