git push 할 때, error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 에러/ fatal: the remote end hung up unexpectedly Everything up-to-date

남지민·2024년 10월 11일

error

목록 보기
1/1

✳️ git push 오류 ✳️

프론트 파일 푸쉬 중, 400 에러가 떴다.

이전에도 똑같은 오류를 봤었는데, 그 때는 수정사항이 많지 않아 다시 클론을 해서 받아왓던걸로 기억한다.(같은 오류 아닐수도,,)

찾아보니,
이 에러 메세지는 는 Git의 HTTP 버퍼 크기가 충분하지 않아서 발생하는 경우가 많아, HTTP 버퍼 크기를 증가시킬 필요가 있다는 것이다.

먼저 정확한 오류 메세지를 보자면,

❌ 에러 메세지 ❌
Enumerating objects: 133, done.
Counting objects: 100% (118/118), done.
Delta compression using up to 8 threads
Compressing objects: 100% (84/84), done.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (89/89), 1.68 MiB | 2.85 MiB/s, done.
Total 89 (delta 60), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

그래서 Git의 HTTP 버퍼 크기를 500MB로 설정하는 명령어인
git config http.postBuffer 524288000
를 작성하니 푸쉬가 잘 되었다.

0개의 댓글