用git拉取代码时失败和download zip和git clone的区别

error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054


问题描述:

用git拉取github代码失败

remote: Enumerating objects: 1940, done.
remote: Counting objects: 100% (180/180), done.
remote: Compressing objects: 100% (118/118), done.
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

原因分析:

没有ssl证书


解决方案:

$ git config http.sslVerify "false"

使用这段代码忽略证书错误,若出现以下代码

$ git config http.sslVerify "false"
fatal: not in a git directory

应当先对git进行初始化

$ git init
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值