Question 1
Topic: Understand Git and GitHub basics
Skill tested: Apply GitHub Flow by branching, committing, reviewing, and merging a feature change.
A product team maintains a GitHub repository with a protected default branch. Developers must deliver small features without disrupting work already merged by teammates. For a new feature, one developer needs an isolated workspace, wants reviewers to discuss the proposed change before it becomes part of the default branch, and must keep the default branch as the source of the deployed version. Which sequence best follows GitHub Flow?
GitHub Flow keeps the deployable default branch separate from work in progress. A developer creates a branch from the default branch, commits the change on that branch, and uses a pull request to invite review and discussion before merging. Review feedback can be incorporated on the same branch. Committing directly to the default branch bypasses the requested review; merging before review reverses the required order. A fork is useful when a contributor lacks write access, but it is unnecessary for this developer's stated workflow.