您现在的位置是:首页 >其他 >Git clone 出现Failed to connect to github.com port 443 after 75007 ms:Couldn‘t connect to server 问题解决网站首页其他
Git clone 出现Failed to connect to github.com port 443 after 75007 ms:Couldn‘t connect to server 问题解决
最近入手新电脑,使用git 总是出现Couldn't connect to server 的问题,很是头疼。。。🤕
ada@Mac ~ % git clone https://github.com/AUTOMATIC1111/webuiCloning into 'webui'...fatal: unable to access 'https://github.com/AUTOMATIC1111/webui/': Failed to connect to github.com port 443 after 75007 ms: Couldn't connect to server
ada@Mac~ % git clone https://github.com/AUTOMATIC1111/webuiCloning into 'webui'...fatal: unable to access 'https://github.com/AUTOMATIC1111/webui/': Failed to connect to github.com port 443 after 75001 ms: Couldn't connect to server
出现这种情况,第一反应想到网络连接问题,但网络连接没问题啊!!!
还是进行了测试:测试一下能不能连接:https://github.com/---(自行准备梯子)
一般都可以连接的上
思考原因可能是:网络被拦截了,一般开启了网络代理会导致报错
查看代理相关设置,在自己的电脑里面找到端口号
运行终端执行下面指令:
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
将端口号改成自己电脑上的网络代理端口,配置完成
再次运行Git:
[ada@Mac~ % git clone https://github.com/AUTOMATIC1111/-webui
Cloning into 'webui'...
remote: Enumerating objects: 34912, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 34912 (delta 5), reused 7 (delta 3), pack-reused 34900 (from 2)
Receiving objects: 100% (34912/34912), 35.46 MiB | 513.00 KiB/s, done.
Resolving deltas: 100% (24372/24372), done.
完美解决,以后使用Git再也不原地爆炸了😎。。。