【Github】git clone final connect fail xxx.xxx.xxx github.com 无法连上github问题

将https://github.com/... 改为 git://github.com/... ,也就是百度能搜到的https改成git

第二种情况依然会导致你无法connect成功,就是端口号问题

可以使用

 

自带的Git GUI Here 工具,检查端口问题

fatal: unable to access 'https://github.com/AMikeW/UnityResourceStaticAnalyzeTool.git/': Failed to connect to 127.0.0.1 port 2340 after 2074 ms: Connection refused

现在这个2340就是我们接收数据的端口,并不是我们连不上github,而是尼玛的我们接不到数据,因为127.0.0.1的接收数据端口被一些软件改了。

https://blog.youkuaiyun.com/weixin_43900888/article/details/113026784

如上则是被设置成了2340,设置代码如下:

git config --global http.https://github.com.proxy https://127.0.0.1:XXXX
git config --global https.https://github.com.proxy https://127.0.0.1:XXXX

 清除:

git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy

查看全局配置

git config --global -l
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值