DEV Community

Lyner Lim
Lyner Lim

Posted on β€’ Edited on

2

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 (3)

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.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

πŸ‘‹ Kindness is contagious

Please show some love ❀️ or share a kind word in the comments if you found this useful!

Got it!