Git 遇到了 early EOF index-pack failed 问题
来源:互联网 发布:ccs软件最新软件 编辑:程序博客网 时间:2024/05/21 11:06
今天想 clone 一下 boost 在 github 的 repo,结果在 clone 的过程中遇到了下面的错误。我原本以为是网络原因,今天学校网速废成渣了,很多同学都去网吧撸去了,所以就 retry 了一次。还是出现了下面的错误,然后就不得不 google 去了。
$ git clone https://github.com/boostorg/boost.gitCloning into 'boost'...remote: Counting objects: 183543, done.remote: Compressing objects: 100% (69361/69361), done.fatal: The remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed
后来 google 到的参考如下:
- git clone fails with \"index-pack\" failed?
- Git checking out problem [fatal: early EOFs]
特别是第一篇(第一个QA),应该跟我的情况最为符合,不过我尝试了第二个 QA 中Voket 的回答给出的解决方案。因为我在 Windows 下的 Git 作的这个死。在这里就简单记录一下这个解决方案。
# 为 git 添加配置项,通过下面的命令可以简单完成# 在这之前可以执行 git config -l 命令看看已有配置项有哪些git config --add core.compression -1
上面是通过命令来完成的,很方便,当然可以直接修改 .gitconfig 文件(在用户目录下),如果你愿意的话。部分内容如下:
[user] name = Ggicci email = ...[core] compression = -1
在 [core] 这个 section 里面添加 compression 属性即可。至于它的取值可以参考 Git Config Manpage,这个页面你可以通过man git config
(Linux) 或者 git config --help
(windows)来查看本地版本。
core.compression
An integer -1..9, indicating a default compression level. -1 is the zlib default. 0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest. If set, this provides a default to other compression variables, such as core.loosecompression and pack.compression. - From Git Manpage
compression 是压缩的意思,从 clone 的终端输出就知道,服务器会压缩目标文件,然后传输到客户端,客户端再解压。取值为 [-1, 9],-1 以 zlib 为默认压缩库,0 表示不进行压缩,1..9 是压缩速度与最终获得文件大小的不同程度的权衡,数字越大,压缩越慢,当然得到的文件会越小。
这之后再尝试了一次 clone,works perfectly :)
$ git clone https://github.com/boostorg/boost.gitCloning into 'boost'...remote: Counting objects: 183543, done.remote: Compressing objects: 100% (69361/69361), done.remote: Total 183543 (delta 113990), reused 183372 (delta 113844)Receiving objects: 100% (183543/183543), 67.89 MiB | 162.00 KiB/s, done.Resolving deltas: 100% (113990/113990), done.Checking connectivity... done.
- Git 遇到了 early EOF index-pack failed 问题
- SolveProblem:Git 遇到了early EOF index-pack failed问题
- Git 遇到了 early EOF index-pack failed 问题
- Git 遇到了 early EOF index-pack failed 问题
- Git 遇到了 early EOF index-pack failed 问题
- git遇到remote: fatal: early EOF + index-pack failed的处理方法
- git遇到remote: fatal: early EOF + index-pack failed的处理方法
- git clone错误remote: internal server error + early EOF + index-pack failed的解决方法
- git clone(early EOF index-pack faild)克隆代码文件过大
- 解决Git问题之fatal: index-pack failed
- win下git的RPC failed & early EOF
- git报错:fatal: index-pack failed
- git clone操作出现fatal:index-pack failed错误解决方案
- Git Clone时报 "fatal: index-pack failed error: RPC failed; result=18, HTTP code = 200"
- Git Clone时报 "fatal: index-pack failed error: RPC failed; result=18, HTTP code = 200"原因文件过大需要服务端配置一下
- git通过https访问仓库遇到error: gnutls_handshake() failed问题
- 使用BitBucket和SourceTree进行源代码管理遇到POST git-receive-pack (chunked) 问题
- 使用github和SourceTree进行源代码管理遇到POST git-receive-pack (chunked) 问题
- 网页禁止剪切事件
- 对象拖动事件
- map 遍历key 与 value
- Window prompt()方法
- Elasticsearch性能优化官方建议
- Git 遇到了 early EOF index-pack failed 问题
- 使用jsencrypt实现参数的前端加密
- Window open() 方法
- linux常用命令
- VIM 常用配置
- Window close() 方法
- python的map,filter,reduce函数
- Window moveTo() 方法
- anaconda官方高速下载