git 克隆仓库报错:Failed to connect to github.com port 443 after 21073 ms: Couldn‘t connect to server
git报错:Failed to connect to github.com port 443 after 21073 ms: Couldn't connect to server
·
问题:在挂着梯子或拉取或推送代码时报错,fatal: unable to access 'https://github.com/xxxxx.git'/: Failed to connect to github.com port 443 after 21073 ms: Couldn't connect to server
原因:通常为 开VPN导致本机系统端口号和 git的端口号不一致。
解决:找到自己的端口号(步骤见下图),输入以下代码,在重新克隆即可。
git config --global http.proxy 127.0.0.1:你的端口号
git config --global https.proxy 127.0.0.1:你的端口号
具体步骤:
1. 找端口号:ctrl+i -> 系统设置 -> 输入”代理“ -> 手动设置代理->找到代理IP地址和端口号


2. 设置 git 的端口号为本机系统端口号,然后git clone重新克隆即可。


解决Git连接失败:Failed to connect to github.com port 443 after 21090 ms: Couldn‘t connect to server -腾讯云开发者社区-腾讯云 (tencent.com) 【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github-腾讯云开发者社区-腾讯云 (tencent.com)
更多推荐


所有评论(0)