今天从GitHub上找到一份代码,想要clone到本地,便利用Git去clone代码,结果报了以下错误: error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 fatal: The remote end hung up unexpectedly
查了一下,发现上因为Git限制了推送数据的大小导致的错误。 解决方法:重新设置通信缓存大小 git config http.postBuffer 524288000
如果当你输入完还继续报错: $ git config http.postBuffer 524288000 fatal: not in a git directory
那么你可以加上--global试试: git config --global http.postBuffer 524288000
这样就不会再出问题了,完美解决。剩下的你就该干嘛干嘛啦。 如果还有问题,额,请自行百度,抱歉。
|