「震惊」git error: Cloning into ‘‘... fatal: unable to access ‘https:……“

在尝试gitclone时遇到无法访问GitHub的错误,问题根源是服务器SSL证书未被签署。解决方法是关闭Git的全局HTTPSSL验证,通过运行`gitconfig--globalhttp.sslVerifyfalse`命令即可继续clone操作。

最近在使用git,在使用git clone的时候出现了一些莫名其妙的问题,解决之后决定把它记录下来,方便git初学者。
1、问题描述
2、解决方法

1、问题描述
在git clone的时候出现如下问题:

Cloning into 's**f'...
fatal: unable to access 'https://github.com/su**der/su**df.git/': Failed to connect to github.com port 443 after 21054 ms: Couldn't connect to server

2、解决方法
参考博文:git报错 fatal error 解决方法
产生原因:一般是这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错。

关掉ssl验证,再次git clone即可

git config --global http.sslVerify false

问题2:

  • 问题描述
  • 解决办法

问题描述:

Cloning into ‘d***’…
fatal: unable to access ‘https://github.com//d.git/’: Recv failure: Connection was reset

解决办法:

先清除代理,然后再设置代理接口

# 清除
git config --global --unset http.proxy 
git config --global --unset https.proxy

# 重新设置
git config --global http.proxy http://127.0.0.1:7890
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值