Recently, with GitHub participating in the team's job submission, everyone fork The main git, build their own library , edit, submit pull request
The specific process is as follows:
Original from http://lullabyus.iteye.com/blog/1499402
Summary: Cloning someone else's code base into your own project, can be used as a submodule, or two times development
Operation Flow:
Click the Fork button in the open source project and the item will be copied to your respositories for a moment,
Clone a copy of code to Local: Git clone [email protected]:username/spoon-knife.git
Configuration: (After the project cloning is complete, the default remote Alias is origin, which is the version in our own project, not the original author's code base)
Create an alias for the original code base, easy to follow code git remote add upstream git://github.com/octocat/spoon-knife.git
git fetch upstream trace the original code
Commit code updates to your own code base GIT push Origin master
Get updates to the original code base
git fetch upstream
git merge Upstream/master
If you want to contribute your code to the original code base, submit a pull request on the page
Git fork,pull request participates in team code development