fatal: the remote end hung up unexpectedly

0x01 报错的地方

git仓库中里 添加了一个一些子项目, 有点儿大 300M

push的时候, 报错信息:

fatal: the remote end hung up unexpectedly

0x02 调整 git的提交最大的允许大小

git配置:

git config http.postBuffer 624288000

允许 git提交的文件大小最大 600M左右 (没仔细算)

0x03 gitlab中调整 nginx的最大接收量

本地调整完以后,push提交, 报错信息:

error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

直接修改nginx的配置

在server中添加配置

client_max_body_size 800m;

截图如下:

有时候, 不遇到特殊的情况, 不会在意这些细节的地方, nginx和git其实都考虑到了大多数情况, 我们安心的使用的时候, 他们却在接收着全世界程序员的各种测试!!

原文链接: fatal: the remote end hung up unexpectedly 版权所有,转载时请注明出处,违者必究。
注明出处格式:流沙团 ( https://www.gyarmy.com/post-823.html )

发表评论

0则评论给“fatal: the remote end hung up unexpectedly”