Solve the problem of slow git / github download speed

When the official website to download Git, speed is almost over, but 20KB, there are many solutions, introduce a few simple and crude way here. As used herein the windows system as a demonstration to other systems condemnation.

GitHub is too slow to solve the download method Summary:

Solution 1
Solution 2

Method One: Taobao Mirror

Taobao has a mirror site may be available for download: https: //npm.taobao.org/mirrors/git-for-windows/
click on the link above, you will see pull down the appropriate version, the latest version first, followed by the It is a historical version.

Method 2: Using the cloud code clone GitHub projects, simple and effective operation

1, you first need one yard cloud account, if you do not, this is the official website address --https: //gitee.com/.
2, if there is no account need to register an account. Register your phone number can be a matter of minutes.
3, create a new repository, select Import existing warehouse.
4, find your GitHub Web site, select the URL in the clone, copy.
5. Enter the github project addresses to import we just copied the above link, and then click Create.
6, wait for code clone cloud project, about 1-3 minutes (determined by the size of your network and you want to clone project).
7, cloning is complete, download our project on cloud code (this is your normal download speeds up).
8, normal downloads (forgive my super slow-speed campus network).
9, after the last download is complete, if the project does not require a code can be deleted on the cloud, we just want to solve problems downloading slow down and do not download it, do not create too many useless items.
10, choose to delete the warehouse, black copy authentication information to the appropriate location and click to confirm the deletion, and then verify your password, you can delete.

Method three: Modify the hosts

The first step: go to this website for three domain names corresponding IP address and can not obtain an IP address with ping oh

https://www.ipaddress.com/
Step: Add the following three lines similar in / etc / hosts file

Github.com 192.30.253.113
151.101.185.194 github.global.ssl.fastly.net
192.30.253.120 codeload.github.com
third step: restart the network

sudo /etc/init.d/networking restart
now can quickly download the code on Github.

Published 111 original articles · won praise 386 · views 40000 +

Guess you like

Origin blog.csdn.net/zag666/article/details/105159423