当前位置:   article > 正文

error: RPC failed; curl 18 transfer closed with outstanding read data remaining_sourcetree报错error: rpc failed; curl 18 transfer cl

sourcetree报错error: rpc failed; curl 18 transfer closed with outstandin

参考文章:https://stackoverflow.com/questions/38618885/error-rpc-failed-curl-transfer-closed-with-outstanding-read-data-remaining

  1. Cloning into 'large-repository'...
  2. remote: Counting objects: 20248, done.
  3. remote: Compressing objects: 100% (10204/10204), done.
  4. error: RPC failed; curl 18 transfer closed with outstanding read data remaining
  5. fatal: The remote end hung up unexpectedly
  6. fatal: early EOF
  7. fatal: index-pack failed

出现该错误时,首先要修改postBuffer值:

git config --global http.postBuffer 524288000

有时候文件过大时,还需要分两步走:

第一步:先把depth为1先clone

$ git clone http://github.com/large-repository --depth 1

第二步:进入clone下来的目录,进行unshallow

  1. $ cd large-repository
  2. $ git fetch --unshallow
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/707543
推荐阅读
相关标签
  

闽ICP备14008679号