git commit 후 git push 를 하려고 하는데 아래와 같은 에러가 뜨면서 실패하는 상황을 마주했다.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly
이런저런 시도들을 해봤지만, 결론적으로 해결할 수 있었던 방법은 버퍼의 용량을 늘리는 것이었다.
https://git-scm.com/docs/git-config#Documentation/git-config.txt-httppostBuffer
Git - git-config Documentation
When using the deprecated [section.subsection] syntax, changing a value will result in adding a multi-line key instead of a change, if the subsection is given with at least one uppercase character. For example when the config looks like [section.subsection
git-scm.com
위 문서에서 http.postBuffer 부분을 확인해보면, git 은 전송 가능판 최대 버퍼 용량을 1MiB 로 제한을 걸고있다.
따라서 전송 타이밍에 가능한 패킷 용량을 초과하면 위와 같은 에러가 생길 수 있다.
나는 그래서 버퍼를 늘린 후, git push 를 하는 방법을 택했다.
아래와 같이 Git의 HTTP 포스트 버퍼 용량을 약 500MB 로 늘렸다.
git config http.postBuffer 524288000
git push origin [브랜치]
기본값보다 크기 때문에, 큰 용량을 파일이나 많은 변경사항을 push 하려고 할 때 생기는 에러를 방지할 수 있다.
따라서 나는 위 방식으로 git push 에러 문제를 해결할 수 있었다.
ref: https://stackoverflow.com/questions/12651749/git-push-fails-rpc-failed-result-22-http-code-411
git push fails: RPC failed; result=22, HTTP code = 411
I have only one branch. For a few months I have been using git push origin master to commit to my local repository. Last night after I made some minor changes to my local repository and tried to ...
stackoverflow.com
git commit 후 git push 를 하려고 하는데 아래와 같은 에러가 뜨면서 실패하는 상황을 마주했다.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly
이런저런 시도들을 해봤지만, 결론적으로 해결할 수 있었던 방법은 버퍼의 용량을 늘리는 것이었다.
https://git-scm.com/docs/git-config#Documentation/git-config.txt-httppostBuffer
Git - git-config Documentation
When using the deprecated [section.subsection] syntax, changing a value will result in adding a multi-line key instead of a change, if the subsection is given with at least one uppercase character. For example when the config looks like [section.subsection
git-scm.com
위 문서에서 http.postBuffer 부분을 확인해보면, git 은 전송 가능판 최대 버퍼 용량을 1MiB 로 제한을 걸고있다.
따라서 전송 타이밍에 가능한 패킷 용량을 초과하면 위와 같은 에러가 생길 수 있다.
나는 그래서 버퍼를 늘린 후, git push 를 하는 방법을 택했다.
아래와 같이 Git의 HTTP 포스트 버퍼 용량을 약 500MB 로 늘렸다.
git config http.postBuffer 524288000 git push origin [브랜치]
기본값보다 크기 때문에, 큰 용량을 파일이나 많은 변경사항을 push 하려고 할 때 생기는 에러를 방지할 수 있다.
따라서 나는 위 방식으로 git push 에러 문제를 해결할 수 있었다.
ref: https://stackoverflow.com/questions/12651749/git-push-fails-rpc-failed-result-22-http-code-411
git push fails: RPC failed; result=22, HTTP code = 411
I have only one branch. For a few months I have been using git push origin master to commit to my local repository. Last night after I made some minor changes to my local repository and tried to ...
stackoverflow.com