
在执行git clone命令时报错:fatal: early EOF。解决办法如下:
1. 关闭压缩
```
git config --global core.compression 0
```
2. 然后执行部分clone
```
git clone --depth 1
```
其中代表你的远程代码仓库地址,这里我的是用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
---
https://www.4spaces.org/git-clone-fatal-early-eof/