git上传代码到github代码连接超时

阅读 65

2022-04-05

或者

 解决方案

可以使用全局代理或者部分代理来解决这个问题。

git config --global https.proxy [http://127.0.0.1:1080](http://127.0.0.1:1080/)

git config --global https.proxy [https://127.0.0.1:1080](https://127.0.0.1:1080/)

取消代理

git config --global --unset http.proxy

git config --global --unset https.proxy

 两个取其一就好,本人使用的http,亲测有用

精彩评论(0)

0 0 举报