問(wèn)題
執(zhí)行g(shù)it命令:git pull origin main;
出現(xiàn):fatal: unable to access ‘https://github.com/xxx.git’: Failed to connect to github.com port 443 after xxx ms: Timed out。
解決方法
手動(dòng)配置Git代理:
1.打開ShadowsocksR軟件;
2.右鍵ShadowsocksR圖標(biāo),點(diǎn)擊《選項(xiàng)設(shè)置》,查看本地端口,我的是1080;
2.執(zhí)行 git config --global http.proxy http://127.0.0.1:1080;
3.執(zhí)行 git config --global https.proxy http://127.0.0.1:1080。
取消代理
1.執(zhí)行 git config --global --unset http.proxy ;
2.執(zhí)行 git config --global --unset https.proxy 。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-534042.html
參考文章文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-534042.html
到了這里,關(guān)于git pull出現(xiàn)fatal: unable to access ‘https://github.com/xxx.git‘: Failed to connect to github.com port的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!