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

 

如下图所示:

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

 

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

解决办法:

修改配置文件

打开终端

运行:gedit ~/.bashrc

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

export GIT_TRACE_PACKET=1

export GIT_TRACE=1

export GIT_CURL_VERBOSE=1

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

 

 

 

 

 

 

 

 

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2021-09-01
  • 2021-12-17
  • 2021-04-20
  • 2021-05-21
  • 2022-12-23
  • 2021-06-01
猜你喜欢
  • 2021-06-26
  • 2021-05-30
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案