# Update an existing GitHub pull request with follow-up commits

Canonical: https://githtml.com/guides/github-update-existing-pull-request-commits
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

To update an open pull request, commit the follow-up changes on its head branch and push that branch to its verified remote repository. The existing request reflects new commits on that head branch. Confirm the head owner and branch first; pushing to a similarly named branch elsewhere or to the base branch does not update the intended proposal.

## Identify the branch behind the request

Read the pull request header and note the head repository and branch. In a fork workflow, that may be your fork rather than the original project. Your current local branch and origin remote can point somewhere else, so verify them before editing or pushing. Do not infer the destination from the pull request’s title or the default branch shown on the repository homepage.

Review the requested change and decide whether it belongs in this proposal. A small correction can be a follow-up commit; an unrelated feature may deserve a separate branch. Keeping the proposal focused helps reviewers understand what changed since their last pass and prevents an approval from being stretched over new unrelated scope.

## Commit and publish a focused follow-up

The commands inspect branch and remote context, then show the staged patch. Use your normal reviewed commit and explicit push procedure after those checks. Prefer additive follow-up commits during review unless the project asks for a coordinated rewrite, because changing published commit identities can make review context harder to follow.

1. Stage only the requested fix and its necessary tests. Preserve unrelated working changes rather than including them just because the branch already has a pull request.
2. After pushing, compare the pull request’s head commit with your local commit and inspect Files changed to confirm the intended update appeared.

````shell
git branch --show-current
git remote -v
git status --short
git diff --staged
git log -3 --oneline
````

## Tell reviewers what changed

Reply to the relevant discussion with a concise explanation and the verification performed. A new commit alone may not make clear whether you fixed the reported behavior, changed the design, or chose not to address a suggestion. Re-request review when the project’s process calls for it, and do not resolve a conversation solely because code was pushed.

New commits can affect approval validity under branch protection or rulesets. Read the current merge requirements rather than assuming an earlier approval remains sufficient. If the head branch was deleted or the pull request closed, inspect that state before creating a replacement. The useful outcome is a verified update to the same proposal with enough context for reviewers to resume efficiently.

1. If a reviewer requested a regression test, identify the failing case in your reply and explain how the new test exercises it. A follow-up that only rearranges implementation may leave the original concern unanswered. Link the focused commit or changed test so the reviewer can verify that specific claim.
2. When you have several open proposals with similar branch names, compare the pushed commit identifier with the intended request immediately afterward. If it appears in another request, stop further pushes and explain the misplaced update. Do not compound the routing mistake by force-updating whichever branch looks closest.

## Sources and further reading

- [GitHub documentation](https://docs.github.com/en/pull-requests/reference/pull-requests)
- [Git reference: git-push](https://git-scm.com/docs/git-push)
- [Git reference: git-commit](https://git-scm.com/docs/git-commit)

## Related guides

- [Turn document reading notes into useful GitHub issues](https://githtml.com/guides/turn-document-notes-into-github-issues)
- [GitHub App vs OAuth app: understand the access model](https://githtml.com/guides/github-app-versus-oauth-authorization)
- [Why an approved GitHub pull request can still be blocked](https://githtml.com/guides/github-approved-pull-request-still-blocked)
- [What an archived GitHub repository lets you do](https://githtml.com/guides/github-archived-repository-read-only)

Editorial approach: https://githtml.com/guides/about
