解决git报错:error: RPC failed; curl 18 transfer closed with outstanding read data remaining 的方法

报错信息:

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决方法一:网上大部分解决措施:命令终端输入如下命令,但是一般并不好使,

git config --global http.postBuffer 524288000

改为只clone深度为一

git clone /github_com/large-repository --depth 1
cd large-repository
git fetch --unshallow

中划线处填入你的git仓库的地址。。。(我用的是http方式,不是ssh)

解决方式二,一般clone http方式的容易产生此问题,改成SSH的方式也有效,即https://改为git://   (亲测有效,直接用这个方法即可

---------------------
作者:LCLH
来源:CSDN
原文:https://blog.csdn.net/it_liuchengli/article/details/77040806
版权声明:本文为博主原创文章,转载请附上博文链接!

原文地址:https://www.cnblogs.com/afeiyuanda/p/10935108.html

时间: 2024-10-11 22:07:11

解决git报错:error: RPC failed; curl 18 transfer closed with outstanding read data remaining 的方法的相关文章

git clone报错error: RPC failed; curl 18 transfer closed with outstanding read data remaining

具体错误信息如下图: error: RPC failed; curl 18 transfer closed with outstanding read data remaining    fatal: The remote end hung up unexpectedly    fatal: early EOF    fatal: index-pack failed 这个错误产生的原因是时间太久,资源太大. 基于此,第一种考量即扩大缓存区.即在命令行输入:         git config 

Jenkins之发布报错“error: RPC failed; curl 18 transfer closed with outstanding read data remaining”

报错信息: error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.

Git 报错:git - error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解决方案

error: RPC failed; curl 18 transfer closed with outstanding read data remaining because have error when clone by HTTP protocol (curl command). And, you should increment buffer size: git config --global http.postBuffer 524288000 原因:由于Http协议错误,当Pull或者C

error: RPC failed; curl 18 transfer closed with outstanding read data remaining的解决

解决方案也是网上搜的,总结一下 一,加大缓存区git config --global http.postBuffer 524288000这个大约是500M二.少clone一些,–depth 1git clone https://github.com/flutter/flutter.git --depth 1–depth 1的含义是复制深度为1,就是每个文件只取最近一次提交,不是整个历史版本.三.换协议clone http方式换成SSH的方式,即 https:// 改为 git://例如git c

git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).

Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保留本地的更改,中止合并->重新合并->重新拉取 $:git merge --abort $:git reset --merge $:git pull 解决办法二:舍弃本地代码,远端版本覆盖本地版本(慎重) $:git fetch --all $:git reset --hard origin/ma

解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists).

Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 2017年02月22日 20:38:28 阅读数:19178 Git fetch和git pull的区别: 都可以从远程获取最新版本到本地 1.Git fetch:只是从远程获取最新版本到本地,不会merge(合并) $:git fetch origin master //从远程的origin的master主分支

PHP Curl transfer closed with outstanding read data remaining

php transfer closed with outstanding read data remaining php curl CURLOPT_HTTPHEADER php curl 报错 transfer closed with outstanding read data remaining http://php.net/manual/zh/function.curl-setopt.php

git error: RPC failed; curl transfer closed with outstanding read data remaining

网速原因. $ git clone http://github.com/xxxxx --depth 1 $ cd xxxxx $ git fetch --unshallow 原文地址:https://www.cnblogs.com/amitherblogs/p/12681861.html

(转)git clone: error: RPC failed; result=18, HTTP code = 200 解决办法

git clone: error: RPC failed; result=18, HTTP code = 200 解决办法 分类: git2013-09-01 17:03 10753人阅读 评论(2) 收藏 举报 gitcurl ?今天git clone时,出现这个错误. [php] view plaincopy 因为自己的git库上面放了一些数据,所以整个库较大.google了一下,发现是curl的postBuffer 默认值较小的原因,配置下个这个值,就不会出现该错误了.