Here’s a quick Git tip I stumbled across that helped me this morning.
While making an initial commit for a repository containing several MP3 files, I got:
fatal: The remote end hung up unexpectedly
Sometimes this is caused by an authentication error, but I was sure everything was correct. Instead, I considered it might be the size of the repo I was pushing (164.07 MiB). All I needed was to make a quick change to the configuration by running:
git config http.postBuffer 524288000
Note that 524288000
is just 500MB written in bytes. I shouldn’t need that much space in a push, but it’s an easier number to remember.