Now make your modifications to the project and commit them to your topic branch.

5. Keep your fork up-to-date

Forking a repository is the recommended way of contributing to a github project. Alas it doesn't get updated with the latest commits from the forked repository.

The upstream remote we added in the previous topic will help you update your repository with those latest changes by pulling and then merging in them in as so :

~/OpenSceneGraph (master)$ git pull upstream master

Now your local upstream/master should contain all the new commits. You can merge them to your master branch.

~/OpenSceneGraph (master)$ git merge upstream/master

6. Keep your contributions up-to-date

When updating your repository with the upstream's modifications it is likely that your topic branch will need to integrate those changes too. This is called rebasing. This will modify your topic branch commits (yes, it will create some new commits) to make the topic branch start from the latest commits in the upstream repository.