事由: 更新 git@osc 代碼時,執行 git pull 響應一段時間后輸出 socket5 read timeout
解決方案:修改 git 的代理設置,這里是去掉了代理部分
關于 git 設置代理的方法:
// 查看當前代理設置git config --global http.PRoxygit config --global https.proxy// 設置當前代理為 http://127.0.0.1:1080 或 socket5://127.0.0.1:1080git 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'// 刪除 proxygit config --global --unset http.proxygit config --global --unset https.proxy新聞熱點
疑難解答