栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

git push 报错 the remote end hung up unexpectedly

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

git push 报错 the remote end hung up unexpectedly

项目场景:

git push 报错 the remote end hung up unexpectedly
提交文件中包含一个60+M的压缩包


问题描述:

error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date


原因分析:

本地git缓存不足,本次push文件内容大小过大


解决方案: 有以下几种解决方案:
    如果你的 git 是使用 http 协议的,改用ssh协议,再次 push 即可
      运行 git remote set-url origin git@git.xxx.com:gitbook/notes.git在 .git/config 文件中修改url为ssh协议url
      [remote "origin"]
      url =git@git.xxx.com:gitbook/notes.git
      
    修改 git 缓存大小 (这里给出的是全局的,也可以设置该文件夹的,也可以从config文件中添加/修改大小)
    git config --global http.postBuffer 524288000强制推送
    git push -u origin master -f
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/748437.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号