I'm trying to push for the first time a code to my git repository but i get the following error:
Counting objects: 222026, done. Compressing objects: 100% (208850/208850), done. Write failed: Broken pipe222026) error: pack-objects died of signal 13 fatal: The remote end hung up unexpectedly error: failed to push some refs to 'ssh://[email protected]/<...>'
I tried to increase the http buffer size (git config http.postBuffer 524288000
), I tried to git repack
, but it did not work.
I was able to push a very similar size code to another repository (it was not working like this one, but after the git repack
it did work). I'm trying to push it to bitbucket.
Any ideas?
Simple solution is to increase the HTTP post buffer size to allow for larger chunks to be pushed up to the remote repo. To do that, simply type:
git config http.postBuffer 52428800
The number is in bytes, so in this case I have set it to 50MB. The default is 1MB.