Updating a forked repository - SaratogaEDD2014/RapidPrototyper GitHub Wiki
- 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
- Fetch all the branches of the remote that was just created.
git fetch parent
- Checkout the master branch, to ensure you are accessing the right files.
git checkout master
- 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
- 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