【问题标题】:Git error - fatal: The remote end hung up unexpectedlyGit 错误 - 致命:远程端意外挂断
【发布时间】:2015-09-22 07:06:42
【问题描述】:

我正在尝试推送到 git,但我一直遇到同样的问题。我尝试了here 的解决方案,但似乎都不起作用。请让我知道它可能是什么。

$ git push origin master:master
Username for 'http://internalgit.lan':
Password for 'http://avandenheste@internalgit.lan':
Counting objects: 176, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (171/171), done.
Writing objects: 100% (176/176), 56.07 MiB | 4.87 MiB/s, done.
Total 176 (delta 49), reused 0 (delta 0)
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

【问题讨论】:

    标签: git command-line ssh cygwin


    【解决方案1】:

    实际上,您正在通过 http 发送一个(太大)对象。

    413 - 请求实体太大 服务器拒绝处理请求,因为请求实体比服务器愿意或能够处理的要大。

    要修复它,我可以想到两个选项:

    1. 开始使用ssh 而不是http。如果 ssh 可供您使用,这是最好的选择。

    2. 将处理请求的 Web 服务器配置为接受更大的请求。

    【讨论】:

      猜你喜欢
      • 2013-02-20
      • 1970-01-01
      • 2012-06-08
      • 2011-05-04
      • 1970-01-01
      • 1970-01-01
      • 2021-04-03
      • 2018-03-11
      相关资源
      最近更新 更多