1. A contributor wants to propose changes to an open-source project on GitHub that they do not have write access to. Which workflow correctly describes the standard process?
- A. Clone the repository directly, push a new branch, and open a Pull Request from that branch.
- B. Fork the repository to their own account, clone their fork, make changes on a new branch, push to their fork, and open a Pull Request targeting the original repository.✓ Correct
- C. Create an Issue in the original repository requesting that a maintainer make the change on their behalf.
- D. Use GitHub Codespaces to edit files directly on the main branch of the original repository and commit changes.
Explanation
The standard open-source contribution workflow involves forking the repository (creating a personal copy on GitHub), cloning the fork, making changes on a feature branch, pushing to the fork, and then opening a Pull Request against the original (upstream) repository. Option A is incorrect because external contributors cannot push directly to a repository they don't have write access to. Option C (creating an Issue) is a way to request changes but is not the standard contribution workflow. Option D is incorrect; Codespaces on the original repository does not grant write access, and committing directly to main is not possible without permissions.