Git错误-致命:远程端意外挂起

Git错误-致命:远程端意外挂起,git,command-line,ssh,cygwin,Git,Command Line,Ssh,Cygwin,我试图推动git,但我一直得到同样的问题。我试过这些解决办法,但似乎都不管用。请告诉我可能是什么 $ 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. Compress

我试图推动git,但我一直得到同样的问题。我试过这些解决办法,但似乎都不管用。请告诉我可能是什么

$ 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

事实是,您正在通过http发送一个(太)大的对象

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

要解决这个问题,我可以想出两个选择:

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

  • 配置处理请求的web服务器以接受较大的请求