DEV Community

Lyner Lim
Lyner Lim

Posted on Edited on

Git - RPC failed; HTTP 400 curl 22 The requested URL returned error: 400

In my case, this error occurred because I attempted to push a file size of 30MB. We resolved this issue by increasing Git’s HTTP buffer size to accommodate larger pushes. Say we set the size to 150mb, using the following command:

git config --global http.postBuffer 150000000

git config --global --get http.postBuffer
Enter fullscreen mode Exit fullscreen mode

After entering these two lines, our push should work successfully.

Top comments (4)

Collapse
 
tshepitech profile image
tshepi_tech •

thank you. Not often you find the solution that works for you on your first try!

Collapse
 
eneajaho profile image
Enea Jahollari •

God sent!

Collapse
 
mdatikulislam profile image
Md. Atikul Islam •

Thanks a lot.

Collapse
 
theseus-427 profile image
Theseus •

赛博神医啊