git

How to solve git error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400

lynerlwl

Lyner Lim

Posted on November 6, 2024

How to solve git error: 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.

💖 💪 🙅 🚩
lynerlwl
Lyner Lim

Posted on November 6, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related