[go: up one dir, main page]

Skip to content

Keeping your branch up-to-date

When working with other developers, it can be that the branch your are working on becomes out of sync with the base branch. In your Github PR your will see the following message:

out of date

If this happens, you need to retrieve all the changes from upstream, and apply them to your branch by rebasing it on top of master.

  1. Open Terminal.

  2. Change the current working directory to your local project.

  3. Sync up your fork with upstream.

    git checkout master
    git pull upstream master
    git push origin master
    

  4. Rebase your branch.

    git checkout -
    git rebase master
    

  5. Update your branch.

    git push origin -f