To be able to make a pull request to an open source project, one might need to update the forked repository. This can be done using git rebase using the following steps:

  1. Add the remote original repo as upstream to your local repo

    git remote add upstream <original repo>

  2. Fetch all the branches from the remote upstream

    git fetch upstream

  3. Rebase local master with upstream’s master

    git rebase upstream/master

  4. Update your forked repository master by pushing the rebased branch

    git push origin master