当前位置:   article > 正文

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

git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
  • git使用中遇到如下错误(推送报错):
% git push --set-upstream origin master

Enumerating objects: 760, done.
Counting objects: 100% (760/760), done.
Delta compression using up to 11 threads
Compressing objects: 100% (712/712), done.
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (760/760), 98.04 MiB | 40.06 MiB/s, done.
Total 760 (delta 45), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 原因:
    http协议传输缓存区太小导致的
  • 我的解决方式
% git config http.postBuffer 524288000
  • 1

将缓存区提高到500MB(可根据项目需要自行调整)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/1021141
推荐阅读
相关标签
  

闽ICP备14008679号