The difference between git clone and fork

Source: Internet
Author: User
Tags git clone

1. Differences

Git clone is a direct knock command on your computer (here I am Ubuntu), and the result is that the project in GitHub repository is cloned to your local computer.

Fork is a direct access to the GitHub site, click Fork on the project page, and then one more copy of the project on your own GitHub project

2. Usage

If we want to modify someone else's GitHub project, we can't pull the git clone code locally, so we'll use fork to copy the code to our GitHub repository, then git clone to local modification, Then when submitting pull (here pull is pulling to your github repository, the code in our own GitHub repository is a branch of the fork source), and when we want to submit the modified code to others, When someone sees it, they can merge the code.



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.