fatal The remote end hung up unexpectedly

妖狐艹你老母 2022-01-25 15:26 295阅读 0赞

异常信息

  1. Counting objects: 61350, done.
  2. Delta compression using up to 2 threads.
  3. Compressing objects: 100% (20587/20587), done.
  4. efatal: The remote end hung up unexpecterror: RPC failed; HTTP 413 curl 22 The requested U
  5. RL returned error: 413 Request Entity Too Large
  6. dly
  7. Writing objects: 100% (61350/61350), 4.32 GiB | 657.00 KiB/s, done.
  8. Total 61350 (delta 39636), reused 59367 (delta 37653)
  9. fatal: The remote end hung up unexpectedly
  10. Everything up-to-date

场景描述

fatal: The remote end hung up unexpectedly
上传一份代码的时候,出现了这个错误,然后就没有成功上传.


异常原因

目前是成功解决问题了,根据错误,这个是明显的文件过大导致的上传失败了,我实际更改的时候是直接更改的1g了.
算是成功解决问题.
看到还有用git命令直接修改的,由于一次就成功了,就没有再重新尝试一下修改之后能够行得通了,后面遇到再试了.


解决方案

更改为https推送
git remote remove origin
git remote add origin https://github…com/user/repo
git push —set-upstream origin master

windows:
在 .git/config 文件中加入
[http]
postBuffer = 1048576000
linux:
git config http.postBuffer 1048576000


参考资料

Git中push时出现错误fatal: The remote end hung up unexpectedly - 行者小朱的博客 - CSDN博客
http://blog.csdn.net/u012050154/article/details/54605256
解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题 - 飞鱼君 - 博客园
https://www.cnblogs.com/feiyujun/p/7755764.html

推荐阅读
●Java构架师之路
●计算机教程汇总
●Java面试大全
●网站推荐
●软件推荐
●点击加入QQ群874514813交流学习,或获取更多资料

发表评论

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

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

相关阅读