解決git clone報錯: Failed to connect to github.com port 443 after 21068 ms: Couldn’t connect to server
1. 問題
不能git clone來自Github上的倉庫,報端口443錯誤。
2.解決方案
主要是由于Git端口與系統(tǒng)代理不一致
默認(rèn)的端口號:127.0.0.1:7890
如果不確定可以在 網(wǎng)絡(luò)和Internet–>代理–>手動設(shè)置代理–>編輯 下查看
修改Git的網(wǎng)絡(luò)設(shè)置
# 注意修改成自己的IP和端口號
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
3.補充
對于Gitee這種網(wǎng)站是不需要(爬的東西),因此要取消代理??梢酝ㄟ^下面的方式查看代理和取消代理
-
查看代理:文章來源:http://www.zghlxwxcb.cn/news/detail-715683.html
# 查看代理 git config --global --get http.proxy git config --global --get https.proxy
-
取消代理:文章來源地址http://www.zghlxwxcb.cn/news/detail-715683.html
# 取消代理 git config --global --unset http.proxy git config --global --unset https.proxy
到了這里,關(guān)于解決git clone報錯: Failed to connect to github.com port 443 after 21068 ms: Couldn’t connect to server的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!