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:
- 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.
- 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
- 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?