error: RPC failed; curl 18 transfer closed with outstanding read data remaining이 발생했을 때 문제해결

git을 이용하여 Clone 하는 도중..
error: RPC failed; curl 18 transfer closed with outstanding read data remaining 에러가 발생했다면 이렇게 한번 해보세요.

문제 원인

error: RPC failed; curl 18 transfer closed with outstanding read data remaining를 해석해 보면 미해결 읽기 데이터가 남아 있는 상태에서 curl 18 전송이 종료되었습니다. 라는 뜻이네요.

문제의 원인은 네트워크의 문제로 인해 연결이 끊기고 git clone 종료된 상황이라고 합니다. 보통 네트워크 상황이 좋지 않고 대량의 파일을 Clone 할 때 발생할 수 있다고 합니다.

해결 방안

한 번에 모든 파일을 git clone 하기보다는 먼저 1Depth만 먼저 Clone 하고 점진적으로 가져오는 방법입니다.

$ git clone https://test.github.com/design/design.git --depth 1
$ cd repo_design
$ git fetch --unshallow

만약에 tortoiseGit을 사용한다면 아래와 같이 깊이를 1로 설정하면 동일한 효과가 발생합니다.

Comments

Popular posts from this blog

CSS에서 ellipsis('...')를 처리하는 방법

nano에디터 소개 및 사용법

구글 스프레드시트로 캘린더 이벤트 등록하기