Welcome to my website, have a nice day!
Dream it, Do it, Make it!

git clone fatal: early EOF解决办法

  • git版本:2.18.0;
  • 系统:windows 10;

在执行git clone命令时报错:fatal: early EOF。解决办法如下:

1.关闭压缩

git config --global core.compression 0

2.然后执行部分clone

git clone --depth 1 <repo_URI>

其中代表你的远程代码仓库地址,这里我的是用https://github.com/dyc87112/SpringBoot-Learning.git

3.如果起作用了,clone剩下的代码:

git fetch --unshallow 

4.以后执行常规操作就行了

git pull --all

出错原因应该是git版本的问题,msysgit版本1.8.x导致的,因此另一个解决的办法是使用git早起版本,比如git 版本小于1.8.3。

转载自:https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed

赞(1)
未经允许禁止转载:Ddmit » git clone fatal: early EOF解决办法

评论 1

  1. #1

    git fetch –unshallow 执行没有成功

    RPC failed; curl 56 OpenSSL SSL_read: Connection was reset
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed

    jacqui4年前 (2020-01-08)回复

登录

找回密码

注册