cmd 中git pull https://xx.xx.git报错error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset,

本文介绍了在使用Git克隆项目时遇到SSL证书未签署导致的错误,以及如何通过禁用SSL验证进行临时解决。然而,这种解决方法存在安全隐患,可能导致不安全的HTTPS连接。解决方案包括全局禁用git的SSL验证,但这样做会收到警告。尽管如此,最终成功克隆了项目。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
remote: Counting objects: 179, done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

 

 

参考解决办法

https://blog.youkuaiyun.com/dsqcsdn/article/details/104821042/

在git clone laravel项目时报错
在这里插入图片描述
这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错
解决办法:

git config --global http.sslVerify "false"

解决效果

解决效果

D:\nlp\Repository>git clone https://code.aliyun.com/bonson-demo/domain_recognize_server.git
Cloning into 'domain_recognize_server'...
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
remote: Not Found
fatal: repository 'https://code.aliyun.com/XXX/domain_XXX_server.git/' not found

D:\nlp\Repository>git clone https://code.aliyun.com/XXX-demo/domain_recognize_server.git
Cloning into 'domain_recognize_server'...
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.
remote: Counting objects: 189, done.
remote: Total 189 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (189/189), 1.12 GiB | 8.71 MiB/s, done.
Updating files: 100% (76/76), done.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值