개발

[ERROR] fatal: 너무 빨리 파일이 끝남

ai4man 2023. 12. 18. 22:18
반응형

1. When:

git clone 시 용량이 너무 클 때 발생

네트워크 불안정 시에도 발생하는 듯

 

2. Error message:

fatal: 너무 빨리 파일이 끝남
fatal: early EOF 
fatal: index-pack failed

 

3. Solution:

a. 히스토리를 제거하고 clone

--depth 1 추가

git clone --depth 1 https://github.com/example/example.git

 

b. 네트워크 연결 양호 확인

 

4. Reference:

Git Instruction page

https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt

 

반응형