git 推送出现 "fatal: The remote end hung up unexpectedly

解决方式一:

修改提交缓存大小为500M,或者更大的数字

  1. git config --global http.postBuffer 524288000

或者在克隆/创建版本库生成的 .git目录下面增加config文件配置内容:

  1. [http]
  2. postBuffer = 524288000

解决方式一二:

配置git的最低速度和最低速度时间:

  1. git config --global http.lowSpeedLimit 0
  2. git config --global http.lowSpeedTime 999999 # 单位 秒

--global配置对当前用户生效,如果需要对所有用户生效,则用—system

发表评论

表情:
评论列表 (有 0 条评论,92人围观)

还没有评论,来说两句吧...

相关阅读