Pull from Github Fork from the Original Repo
Add a remote branch to your repository that points to the original repo you forked from.
% git remote add --track master remoteRepo git://github.com/user/app.git
Replace "master" with the branch you want to track in the remote repo. In most cases this will be master.
"remoteRepo" is what you the remote will be called, so replace it to whatever you want.
To verify the remote repository was added run
% git remote
You should see the new remote repo "remoteRepo".
Now we can fetch all the changes from the remote repo code base.
% git fetch remoteRepo
This will create a new remote branch called "remoteRepo/master". Now we are ready to merge the code from the remote repository.
% git merge remoteRepo/master
That's it, now you can continue contributing!
blog comments powered by Disqus