git中push或者clone时报错the remote end hung up unexpectedly

  • Post author:
  • Post category:其他


使用git提交或者克隆时出现the remote end hung up unexpectedly的异常,原因应该是网络原因引起的而且文件可能比较大的情况下

解决办法是:

配置git的最低速度和最低速度时间,命令如下:

git config –global http.lowSpeedLimit 0

git config –global http.lowSpeedTime 999999

其中–global配置是对当前用户有效,若需要对所有用户生效则改成–system

配置完后再试着进行提交



版权声明:本文为Sunday97原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。