GIT
Git push 에러
구티맨
2020. 1. 7. 09:51
변경 사항이 대용량 인 경우, push 할 때 아래와 같이 에러가 나는 경우가 있다.
error: unable to rewind rpc post data - try increasing http.postBuffer
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
Completed with errors, see above
이는 대부분 Git 의 buffer 가 작아서 그렇다.
아래와 같이 Git의 postBuffer 를 늘려주면 해결이 된다.( 해당 프로젝트의 .git 폴더에서 명령어를 수행해야 한다. )
git config http.postBuffer 524288000 #Set to 500MB
에러가 났을 때는, push 할 때 POST git-receive-pack (chunked) 로 나왔다면, buffer를 500MB로 늘려주고 난 뒤에는
POST git-receive-pack (22892583 bytes) 나오면서 정상적으로 push 가 된다.
버퍼를 늘렸는데도 동일한 에러가 난다면, 간혹 네트워크가 느린 경우에도 위의 에러가 발생하니 참조 하길 바란다.