1.git需要设置代理才能使用代理
bash运行
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
2.改host文件
github.com 跳到 github.com.cnpmjs.org
3.改国内镜像站
1.git需要设置代理才能使用代理
bash运行
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
2.改host文件
github.com 跳到 github.com.cnpmjs.org
3.改国内镜像站