How to Edit PR and Push to Upstream

Posted . Visible to the public.

Checkout the PR to local:

$ gh pr checkout 4767

Current branch is pr-4767
Edit the files and commit to current branch.

Fetch the branch from the contributor’s fork:

$ git fetch contributor {upstream-branch-name}

Push your changes to that branch:

$ git push contributor pr-4767:{upstream-branch-name}
kiatng
Last edit
kiatng
Posted by kiatng to Git (2025-09-27 09:12)