在Github上面克隆代码仓库出现Failed to connect to 127.0.0.1 port 1080 after 2063 ms: Couldn't connect to server
、Failed to connect to github.com port 443 after 21083 ms: Couldn't connect to server
等提示Couldn't connect to server
错误,无法正常下载。通过下面办法得以解决,故记录下来以供后续参考,也为大家提供一些思路。
出现Couldn’t connect to server的原因多半是因为先前通过下述终端命令设置了github的访问代理,取消即可正常访问。
git config --global http.proxy http://127.0.0.1:1080
git config --global http.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
收集整理和创作不易, 若有帮助, 请帮忙点赞
➕收藏
❤️, 谢谢!✨✨