Git fork,pull request participates in team code development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.