Github download slow/failed? It doesn’t exist!!
Have a dream, feelings, temperature, dry goods full; Keep an eye on me.
preface
Github as a huge open source repository, as a program APE I believe you will not be unfamiliar, there are many open source projects, but when we are ready to (BAI) under (PIao) load for a while, but often very shang
At present, the download speed from Github in China is about 20KB /s. Such speed is good for smaller files. If bigger files are lucky, they can also be downloaded.
How can github download so slowly and always fail? Now please listen to me weiwei way.
1. Git Clone
Suppose we download the source code for spring-Framework here
The source address is as follows:
Github.com/spring-proj…
If we clone directly
The download speed is only 15KB /s.
The solution
You are advised to use github’s mirror site for download
github.com.cnpmjs.org/
The replacement rules are as follows:
Original → github.com/ ‘code base address’
New → github.com.cnpmjs.org/ ‘code base address’
Let’s replace the above link address:
https://github.com/spring-projects/spring-framework - originally https://github.com.cnpmjs.org/spring-projects/spring-framework - replacementCopy the code
At this point, we go to the address after clone replacement
You can see that it’s not the same level of speed and the front is like crawling and the back is like flying drops
summary
Here is not limited to this one mirror address, other friends dig oh
2. Release package download
For downloading files, the above method does not work
This can be done by using the agent download function provided by some developers
d.serctl.com/
So let’s do that
Take the distribution package of Spring-Framework as an example
Github.com/spring-proj…
Download directly from the browser at the following speed
Visit d.serctl.com/ and enter a copy to download and submit
Wait a moment, the download history below will show the file we want to download
Choose a download location for the file and try downloading it in your browser
Since the package is smaller, this screenshot is faster and probably faster
Download speed is still not a unit level compared to direct download.
summary
This is not limited to the previous mirror agent download address ha
The following are:
toolwa.com/github/
www.offcloud.com/
gitd.cc/
g.ioiox.com/
gh.api.99988866.xyz/
There are others. Dig for yourself.
I am Baoxing, the best time to start doing something is either ten years ago or now. Thank you for your likes, favorites and comments