1. 設(shè)置ss代理
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
2. 修改host
windows:打開host文件: C:\Windows\System32\drivers\etc\hosts
下面兩行加到host文件末尾
151.101.72.249?github.http://global.ssl.fastly.net
192.30.253.112?github.com
3. 限制Clone深度
只拉取最近的一個 revision
Git clone --depth=1?https://github.com/torvalds/linux.git