What does git fork sync mean? _ Server Other

Source: Internet
Author: User

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:

Git push Origin Master

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

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.