1.设置终端代理:
git config --global http.proxy socks5://127.0.0.1:7890&&git config --global http.https://github.com.proxy socks5://127.0.0.1:7890
设置成功之后就可以了。
2.取消终端代理
git config --global --unset http.proxy&&git config --global --unset http.https://github.com.proxy
另外全局终端代理
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
取消终端代理
unset http_proxy # 取消http 代理访问
unset https_proxy # 取消https 代理访问
解决前后对比
561614753276_.pic_hd.jpg
pod install --verbose --no-repo-update
pod update --verbose --no-repo-update
更新单个库
pod update 库名 --verbose
网友评论