github download slow Solution

First, the code in the search box cloud can direct search:

 

 

Click on any of the search results, if it is found to be consistent with the download of the warehouse, you can directly download by cloning code says:

 

 

If you want to download the code on github project in the cloud does not exist , you can register a cloud account code, then github project clone over:
find the + sign in the upper right corner, select enter the personal center "Import repository from Github"

 

 

Enter the relevant information about the warehouse:

 

 

 Select Import, such github repository was cloned directly over, and then get code to cloud Download on the right side of the "clone / downloads".

two,

Modify the host file, bypassing DNS resolution (general effect)

By visiting: https://www.ipaddress.com/  respectively obtain the following two URLs ip:

(1) github.com

(2) github.global.ssl.fastly.net

E.g:

 

 

Then modify the system's host file (C: \ Windows \ System32 \ drivers \ etc, Note: modify the hosts file requires administrator privileges, you can be copied to the desktop and then covered with modified files).

#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost


140.82.113.4 github.com
199.232.5.194 github.global.ssl.fastly.net

You modify the hosts will not take effect immediately, we need to flush the DNS cache

The input command linux: sudo /etc/init.d/networking restart can.

The windows method to refresh the DNS:

Open CMD

Enter ipconfig / flushdns

Then download speed will obviously be pricey when you close your browser and then access github.

 

Reprinted: https://www.cnblogs.com/yongdaimi/p/11495932.html

Guess you like

Origin www.cnblogs.com/thespace/p/12631528.html