You want to contribute a fix to an open-source project you do not have write access to.
BeginnerScenarioRemotes, Collaboration and Pull Requests
Answer
Situation read → The standard path is fork, branch, pull request.
What I'd do →
- Fork on GitHub:
gh repo fork OWNER/REPO --clone. git switch -c fix/typo-in-readme.- Commit following the project's
CONTRIBUTING.md(sign-off, tests, style). git push -u origin fix/typo-in-readme, thengh pr create.
Why → You push to your fork and the PR proposes the merge into the upstream repo.
Interview tip → Read the contribution guide and open an issue first for larger changes.
More on Remotes, Collaboration and Pull Requests
You are new to a team. How do you collaborate daily without stepping on others' toes?BeginnerYou are migrating a repo from Bitbucket to GitHub and must keep every branch and tag.IntermediateA teammate sent a 3,000-line PR and nobody can review it properly.IntermediateA reviewer asks for changes. How do you update the PR cleanly?BeginnerYour team wants stacked PRs so that large work arrives in small reviewable steps. How do you set it up?AdvancedWhy do you use `--force-with-lease`, and when does it still hurt?Intermediate