Motivation
I’ve recently updated my system to macOS Sequoia and since then I’ve been getting the following error when trying to push to a git repository:
RPC failed; HTTP 400 curl 22 The requested URL returned error:
400 the remote end hung up unexpectedly Total 11 (delta 4), reused 0 (delta 0) the remote end hung up unexpectedly
The Problem
The problem is that the default buffer size for git is too small for the large files I’m trying to push.
The Fix
You can increase the buffer size by running the following command:
git config --global http.postBuffer 157286400