I have forked some one repository in github, but can i get the updates from the origin repository later?
+2
A:
Yes.
You have to add the original repository (the one you forked) as a remote
From the GitHub fork man page:
Once the clone is complete your repo will have a remote named “origin” that points to your fork on github.
Don’t let the name confuse you, this does not point to the original repo you forked from. To help you keep track of that repo we will add another remote named “upstream”:
$ cd github-services
$ git remote add upstream git://github.com/pjhyett/github-services.git
$ git fetch upstream
You have also a ruby gem which can facilitate those GitHub operations.
VonC
2010-10-11 06:12:04
See also http://bassistance.de/2010/06/25/git-fu-updating-your-github-fork/ for a nice summary.
VonC
2010-10-11 06:17:41
Beat me to the punch by 40 seconds. I need to work on my keyboard-fu. :-)
Sedate Alien
2010-10-11 06:38:43