How to solve git error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
Lyner Lim
Posted on November 6, 2024
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
After entering these two lines, our push should work successfully.
💖 💪 🙅 🚩
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.