解决git的the remote end hung up问题_百度经验

使用git更新或提交中途有时出现The remote end hung up unexpectedly的异常,特别是资源库在国外的情况下。此问题可能由网络原因引起。

工具/原料

 
  • git

方法/步骤

 
  1. 1

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

    git config --global http.lowSpeedLimit 0

    git config --global http.lowSpeedTime 999999         单位 秒

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

    官方文档截图

    解决git的the remote end hung up问题
  2. 2

    再次提交或更新:

    配置完成后,重新执行提交或更新命令即可。

    可以通过man git-config或到 https://git-scm.com/docs/git-config.html 查看其它可配置项

    END
 
经验内容仅供参考,如果您需解决具体问题(尤其法律、医学等领域),建议您详细咨询相关领域专业人士。
原文地址:https://www.cnblogs.com/wzjwffg/p/9884149.html