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

git clone error

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

fatar: The remote end hung up unexpectedly

fatal : early EOF

fatal : index-pack failed

如下图所示:

在运行git clone命令时很容易出现这个错误,这是下载的包太大,网速慢超时报错。

解决办法:

修改配置文件

打开终端

运行:gedit ~/.bashrc

然后在配置文件的最下面加上这三行

export GIT_TRACE_PACKET=1

export GIT_TRACE=1

export GIT_CURL_VERBOSE=1

然后保存退出后运行:source ~/.bashrc  是配置文件生效

猜你喜欢

转载自blog.csdn.net/congcong7267/article/details/81413531