问题分析

详细错误信息如下:

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

大概意思是,执行 pull 方法出错,远程终端意外终止连接。

解决方案

修改git配置:

1、查看当前配置命令

git config -l

2、httpBuffer加大    

git config --global http.postBuffer 524288000

3、压缩配置

git config --global core.compression -1    

4、修改配置文件

export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

以上配置文件修改,也可以大幅度提升git 克隆速度

转自Git 克隆错误‘RPC failed; curl 56 Recv failure....’ 及克隆速度慢问题解决

文章目录