[Git] git push시 발생하는 Git: RPC failed; HTTP 400 curl 22 The requested [8/20 study]Git2024. 8. 20. 18:00
Table of Contents
git push시 발생하는 Git: RPC failed; HTTP 400 curl 22 The requested
상황
프로젝트 중 여느때와 같이 git push를 했는데


이러한 오류가 나왔다
원인
git은 전송 가능한 버터 최대 사이즈를 1MiB로 두고 있는데 내가 크기가 큰 gif 사진을 push하려고 해서 발생한 것 같다
해결방법
git config http.postbuffer 524288000
이런 식으로 HTTP로 전송 가능한 바이트를 500MB로 늘리는 방법이있다.

하지만, 해결이 안되는 경우도 있다 필자는 위 방법으로 성공
왜냐하면 git은 파일의 최대 전송 크기를 100MB을 기본값으로 하기 때문에, git LFS(Large File System) 설정이 필요하다.
참고
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
@동혁이 :: Eun_Frontend
프론트엔드 공부일지 입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!