美文网首页
git上传报错总结

git上传报错总结

作者: smartkeyi | 来源:发表于2017-01-11 18:12 被阅读22次

    背景:公司要把项目都从svn迁移到git上

    遇到的问题

    POST git-receive-pack (chunked)

    error: RPC failed; result=22, HTTP code = 413.14 MiB/s

    fatal: The remote end hung up unexpectedly| 1.12 MiB/s

    使用命令行git push -u origin master报错信息如下:

    分析:http的方式限制了上传文件的大小,因为这次上传的内容大多是安装包,肯定是超出了限制的。

    解决方案

    1. git config http.postBuffer 524288000

    2.在sourcetree强制将路径切换为ssh

    3. 再次执行git push -u origin master

    至此,上传成功,上传了一个小时啊,也是醉了

    学习链接:

    http://www.runoob.com/git/git-basic-operations.html

    http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

    相关文章

      网友评论

          本文标题:git上传报错总结

          本文链接:https://www.haomeiwen.com/subject/fnprbttx.html