Push to heroku is failing

Posted by Ife Odugbesan

3 months ago

0

heroku git

Error message:

fatal: protocol error: bad line length character: fata - fatal: the remote end hung up unexpectedly error: failed to push some refs to 'https://git.heroku.com/example.git'


Sometimes, Git’s default buffer size is too small to handle large pushes. You can increase the buffer size to avoid timeouts by running:

git config --global http.postBuffer 524288000
This increases the buffer size to 500MB. If you’re pushing something very large, you might need to adjust this size further.