Just/끄 적
[Git] git push error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
Minnit
2021. 11. 2. 15:38
git add , commit 하고 push 하려는데
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
이런 error 등장...
열심히 검색해보니
git 에 업로드할 때 최대 사이즈가 정해져 있는데 그것보다 큰 용량을 push 하려고 할 때 발생한다고 한다
아니 코드 세네 줄 고친 건데...^-^
그래서 어떻게 해결했냐면
해당 경로의 터미널에서(push 하려고 하는)
git config http.postBuffer 20971520
git config --global http.postBuffer 20971520
이렇게 두 줄 작성해준 후 push 하면 잘 올라간다
코드에서 알 수 있듯이 최대 사이즈를 더 넓혀준 것이다 (단위는 byte)
다들 해결되셨으면....