Reading List

How to update a pull request from a fork with Git from Blogs on Monica Lent's Website RSS feed.

How to update a pull request from a fork with Git

If you maintain an open-source project, there’s a good chance the pull requests you receive need a little bit of work before they’re ready to merge. Here’s a quick step-by-step guide for how to modify commits on a pull request when it’s coming from a fork of your repo. In this guide, we’ll assume the following: Your repo: github.com/your-username/your-repo-name Your contributor: their-username Their PR’s branch: bugfix-branch Step 1. Add their fork as a remote You can name the rew remote whatever you want to (in the example below it’s called “anything”, but I’ve been using the contributor’s username in practice):