问题描述:
从远程仓库pull代码的时候总是连接失败,报Timed out的错误。
解决方案:
# 代理是socks5:
git config --global http.https://github.com.proxy socks5://127.0.0.1:代理端口
#代理是http:
git config --global http.https://github.com.proxy 'http://127.0.0.1:代理端口'
代理端口的查看方式:
参考链接:点这里
从远程仓库pull代码的时候总是连接失败,报Timed out的错误。
# 代理是socks5:
git config --global http.https://github.com.proxy socks5://127.0.0.1:代理端口
#代理是http:
git config --global http.https://github.com.proxy 'http://127.0.0.1:代理端口'
代理端口的查看方式:
参考链接:点这里