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