Updating a forked repository - SaratogaEDD2014/RapidPrototyper GitHub Wiki

  1. First add a remote (nickname to easily reference original repo) in git, so you can easily access the parent repository.

git remote add parent git://github.com/whoever/whatever.git

  1. Fetch all the branches of the remote that was just created.

git fetch parent

  1. Checkout the master branch, to ensure you are accessing the right files.

git checkout master

  1. Rebasing your master will allow all of the commits that you have made since checking out the original to be applied after you update.

git rebase parent/master

  1. So Github accepts the changed you made, you can force push it.

git push -f origin master


For detailed info go to http://stackoverflow.com/questions/7244321/how-to-update-github-forked-repository