转载: https://blog.csdn.net/w_yunlong/article/details/54919192
事由:
更新 git@osc 代码时,执行 git pull 响应一段时间后输出 socket5 read timeout
解决方案:修改 git 的代理设置,这里是去掉了代理部分
关于 git 设置代理的方法:
// 查看当前代理设置 git config --global http.proxy git config --global https.proxy // 设置当前代理为 http://127.0.0.1:1080 或 socket5://127.0.0.1:1080 git config --global http.proxy 'http://127.0.0.1:1080' git config --global https.proxy 'http://127.0.0.1:1080' git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' // 删除 proxy git config --global --unset http.proxy git config --global --unset https.proxy
---------------------
作者:大事龙
来源:CSDN
原文:https://blog.csdn.net/w_yunlong/article/details/54919192
版权声明:本文为博主原创文章,转载请附上博文链接!