Github is too slow

Github is too slow, the most comprehensive solution on the entire network

Recently, I downloaded the source code on Github. It was really tasteless and slow. Through the following methods, let me download Github at a fast speed. Because there happens to be an agent, I use the first method, and the latter methods are referenced from the Internet. I have tried some of the solutions by myself. If it is useful, I will post it to improve your work efficiency. If you have a similar problem, please forward it and bookmark it. At the same time, please write down in the message area if you have used it or not mentioned in this article. The plan we arrived at is perfect together~

1. Have an agent

You only need to set up a proxy for github, here is an example of ss:

 
  1. #只对github.com

  2. git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

  3.  
  4. #取消代理

  5. git config --global --unset http.https://github.com.proxy

Next, enjoy the experience of speed.

2. No agency

 

 

2.1 It’s okay, change the URL

We can use the mirror website of github,

github.com.cnpmjs.org

Just replace github.com with the above URL, then go to clone, the speed is fast!

 

E.g:

 git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose will slow to vomit blood.

git clone https://github.com.cnpmjs.org/CMU-Perceptual-Computing-Lab/openpose, replace github.com with github.com.cnpmjs.org, the download is completed in an instant.

 

2.2 Configure Hosts

Find the ip corresponding to github.com and github.global.ssl.fastly.net in ipaddress, and configure it to hosts.

https://www.ipaddress.com/

 
  1. xxxx github.global.ssl.fastly.net

  2. xxxx github.com

For example: /etc/hostsadd in Ubuntu :

 
  1. 151.101.72.249 github.http://global.ssl.fastly.net

  2. 140.82.113.4 github.com

Guess you like

Origin blog.csdn.net/u010451780/article/details/111168200