Ubuntu Linux用Git 克隆出现错误‘error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull...

版权声明:本文为博主原创文章,未经博主允许不得转载。如有问题,欢迎指正。 https://blog.csdn.net/kellyroslyn/article/details/88957077

用Git克隆代码的时候出现错误:

git clone https://github.com/YunYang1994/tensorflow-yolov3.git
正克隆到 'tensorflow-yolov3'...
remote: Enumerating objects: 1412, done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败

原因是:由于git默认缓存大小不足导致的。
解决方法是:使用下面的命令增加缓存大小

git config --global http.postBuffer 2000000000

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/kellyroslyn/article/details/88957077