error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.

.

.

.

.

.

今天从 github 上 clone 代码的时候,出现了一个错误,重试多次后仍然出现,错误如下:

>$ git clone https://github.com/BOINC/boinc boinc
Cloning into 'boinc'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (25/25), done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

后来发现,只要换成 ssh 方式 clone 就可以了:

>$ git clone git@github.com:BOINC/boinc.git
Cloning into 'boinc'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 290179 (delta 8), reused 6 (delta 1), pack-reused 290153
Receiving objects: 100% (290179/290179), 233.82 MiB | 160.00 KiB/s, done.
Resolving deltas: 100% (223552/223552), done.
原文地址:https://www.cnblogs.com/0xcafebabe/p/11460054.html