73、 Failed to connect to github.com port 443 after 1 ms: Couldn‘t connect to server

一、问题现象:

正常项目开发过程中,使用git commit代码后,准备push 代码到 github上面。但是莫名其妙出现了下面的错误提示:

fatal: unable to access 'https://github.com/****.git/': 
Failed to connect to github.com port 443 after 1 ms: Couldn't connect to server

二、原因:

通过一番问题分析(google)
发现了问题原因 ,代理端口不匹配导致。
问题分析详情
在这里插入图片描述

git config --global http.proxy http[s]://userName(encoded):password(encoded)@proxyaddress:port

但是 拼接很容易出错:

建议使用这种方式:
在这里插入图片描述

git config --global http.proxy 127.0.0.1:8087

三、处理:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值