반응형
git 저장소를 clone해 올 때 저장소 크기가 너무 크다면 다음과 같은 에러를 만날 수 있다.
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
이럴 경우 해결 방법은 clone을 사용할 때 --depth 1 옵션을 추가해 clone 한 후에 fetch를 진행하면 해결할 수 있다.
git clone [저장소url] --depth 1
cd [저장소폴더명]
git fetch --unshallow
반응형
'git' 카테고리의 다른 글
[git] stash (0) | 2020.03.23 |
---|---|
Git pull 시 fatal:refusing to merge unrelated histories를 만났을 때 (0) | 2020.03.05 |
git 대용량 파일 push error 해결 방법 (0) | 2020.02.25 |
Git 원격 저장소 관리 (0) | 2020.02.23 |