Steps to keep a forked Github Repo Up-to-date.
After the forking, clone the repo in to your local system
git clone git@github.com:gobinathm/toolbar.git
In your local repo, Add a remote, call it "upstream":
git remote add upstream https://github.com/paulkinzett/toolbar.git
Now its time to fetch all branches of that remote into remote-tracking branches, ie., such as upstream/master:
git fetch upstream
Next step is to ensure we are in the write working branch
git checkout master
Now its time to bring all those changes from remote into our branch & rewrite master branch so any commits that aren't part of upstream/master are replayed on top
git rebase upstream/master
Alternative: You can merget upsream/master
into your master
git merge upstream/master
Follow @gobinathm on Twitter for more.