轉自:?Git報錯: Failed to connect to github.com port 443 解決方案-CSDN博客
兩種情況:
第一種情況自己有vpn,網(wǎng)頁可以打開github。說明命令行在拉取/推送代碼時并沒有使用vpn進行代理
第二種情況沒有vpn,這時可以去某些網(wǎng)站上找一些代理ip+port
解決辦法:配置http代理Windows、Linux、Mac OS 中 git 命令相同:
配置socks5代理
git config --global http.proxy socks5 127.0.0.1:7890
git config --global https.proxy socks5 127.0.0.1:7890
配置http代理
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
???????
查看代理命令
git config --global --get http.proxy
git config --global --get https.proxy
取消代理命令文章來源:http://www.zghlxwxcb.cn/news/detail-804854.html
git config --global --unset http.proxy
git config --global --unset https.proxy文章來源地址http://www.zghlxwxcb.cn/news/detail-804854.html
到了這里,關于it報錯: Failed to connect to github.com port 443 解決方案的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!