Article Source| Hengyuan Cloud Community
Original Address | [Tips - Code]
1. How to speed up cloning code or downloading files from GitHub?
To speed up cloning code, you can replace github.com with the mirror address of github.com.cnpmjs.org .
For example, the warehouse address is https://github.com/kelseyhightower/nocode.git
and the replaced address is https://github.com.cnpmjs.org/kelseyhightower/nocode.git
# 原始地址 https://github.com/kelseyhightower/nocode.git
# github.com 替换为 github.com.cnpmjs.org
git clone https://github.com.cnpmjs.org/kelseyhightower/nocode.git
You can use the GitHub Proxy service to download GitHub Releases and Raw files . Prefix the full address with https://mirror.ghproxy.com/
# 原始地址 https://raw.githubusercontent.com/kelseyhightower/nocode/master/README.md
# 地址加前缀 https://mirror.ghproxy.com/
curl -L https://mirror.ghproxy.com/https://raw.githubusercontent.com/kelseyhightower/nocode/master/README.md
Due to the geographical differences of the machines, the effects of different mirror addresses may be different. If the download speed is still not satisfactory, you can test the following two again: