Kbengine How to use git to download projects quickly?

Source: Internet
Author: User
Tags how to use git

The project has two images, GitHub "Https://github.com/kbengine/kbengine.git"

, OSC Open source China "Https://git.oschina.net/likecg/kbengine.git". Open source China's fastest download, github speed when bad, general access speed is very slow, only 5kb/s speed, open source China can reach 1m/s speed. But open source Chinese version data is not necessarily up to date.

Method: Download the project can first go to open source China to download most of the engineering data, and then use GitHub to update.

Example:

    1. Go to open source China to download most of the project's data

Command git clone project URL

Example 1:git clone https://git.oschina.net/likecg/kbengine.git

This downloads most of the project's data, and the download speed is fast, but not guaranteed to be up to date, and the Git tool makes the project already have a remote associated mirror address.

Example 1, see the download speed in the diagram? Open source China has the 700k/s speed.

    1. Then add a remote associated mirror

Go to the Command CD directory path under Project command

command git remote add image name mirror URL address

Example 2:git remote add Githubhttps https://github.com/kbengine/kbengine.git

Example 2

    1. By merging the latest data on GitHub, you can ensure that the entire project is up-to-date.

Command git pull GitHub photogenic name (usually with main branch name)

Example 3:git pull Githubhttps Master

Example 3

This will be updated as well.

So you can quickly take advantage of two images of GitHub and OSC open source China to get the latest data on the project, because most of the data is downloaded in open source China, a small portion of the data used by GitHub. Do this without having to endure the download speed of the GitHub turtle. Because open source China has 1m/s download speed.

Kbengine How to use git to download projects quickly?

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.