How can GitHub downloads be accelerated


Github isn’t completely blocked yet, but it’s not that far off. Downloading or cloning a project takes a long time. I’ve never downloaded more than 50KB before, but some projects are still huge…… This makes it very angry sometimes, and if you want to slow down, it also breaks easily, sometimes down to 50%. Pa! Broken, download failure, this time is really crying heart have. But there are ways to speed things up.

1. The cloud

Code cloud is a website similar to Github in China (you must register if you want to download a thing), we can register a code cloud account, used to associate with the Github account, and then we can import the project in Github into the code cloud (may be to use Github to create an ecology for yourself), import to set the time, specific I don’t know the time (some people say it’s fast, I say a few minutes), so our code is imported into the code cloud. After downloading and clone, we only need to modify the information inside and then we can reconnect the downloaded project to Github.

The downside of the code cloud, however, is that it can’t do much when we want the next release, or the next installation package, rather than the source code.

2. The agent

90% of Internet problems can be solved by agents, to buy an agent, as long as the stability and a certain network speed,Github you can take off. We also need to pay attention to the mode we choose, which is generally the global mode and PAC mode. The global mode means that all the traffic of the system goes through the proxy channel, while PAC mode will exclude some. The general PAC mode is browser-specific, but in other software we can’t do much about it. At this time we can turn on global mode, we can also set the proxy for the software (if possible), we put SSR to allow connections from the LAN check box, generally the default IP is 127.0.0.1, then set the port to 1080(default), so our software will go proxy.

Git Clone is still very slow on the command line, so we’ll use these two commands at this point

Git config --global http.proxy http://127.0.0.1:1080 git config --global HTTPS. Proxy http://127.0.0.1:1080Copy the code

So we set up git to also go proxy.