Question 1 · Understand Git and GitHub Basics
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?
Show answer & explanation
Correct answer: B
- 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.
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 D 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 A is incorrect; Codespaces on the original repository does not grant write access, and committing directly to main is not possible without permissions.