Saving this for later, but this was my solution for fixing the malloc error. Probably not the best thing in the world that http postBuffer is set to 99999999 but it fixed the issue and I moved on coding.
git config --global pack.threads 1
git config --global core.packedGitLimit 256m
git config --global core.packedGitWindowSize 256m
git config --global pack.deltaCacheSize 256m
git config --global pack.packSizeLimit 256m
git config --global pack.windowMemory 256m
git config --global http.postBuffer 999999999