Interview Prep/Git & GitHub/Remotes, Collaboration and Pull Requests

An external contributor's PR has conflicts, but they are unresponsive. What do you do as a maintainer?

IntermediateScenarioRemotes, Collaboration and Pull Requests
Answer

Situation read → The change is valuable but stuck.

What I'd do →

  1. If "Allow edits by maintainers" is on, check out the PR with gh pr checkout <n>.
  2. git fetch origin && git rebase origin/main (or merge), resolve conflicts and test.
  3. git push to the contributor's branch; the PR updates and keeps their authorship.
  4. If edits are disabled, re-create the work on your branch and keep their commits with Co-authored-by.

Why → Preserving authorship respects the contributor and keeps the contribution history honest.

Interview tip → Thank them in the PR; it matters for open-source community health.

All Git & GitHub questions Roadmap: Git & GitHub

More on Remotes, Collaboration and Pull Requests