Official documents: http://help.github.com/fork-a-repo/
Summary: Cloning other people's code base into their own projects, can be used as a child module, or two times development
Operation Process:
Click on the Fork button in the open source project, wait a moment, the item will be copied into your respositories, clone a code to the local: Git clone git@github.com:username/spoon-knife.git
Configuration: (After the project clone completes, the default remote Alias is Origin, this is the version in our own project, not the original author's code base)
Create an alias for the original code base to facilitate tracking code
Copy Code code as follows:
Git remote add upstream
Git://github.com/octocat/spoon-knife.git
git fetch upstream
Tracking Raw Code
Submitting code updates to your own code base
Copy Code code as follows:
Get updates to the original code base
Copy Code code as follows:
git fetch upstream
git merge Upstream/master
If you want to contribute your code to the original code base, see http://help.github.com/send-pull-requests/to complete