I cannot push to Heroku git. I see an error starting with fatal:

Issue

When pushing my code to Heroku git through its HTTPS URL, I see an error like

fatal: protocol error: bad line length character: fata

or

fatal: unable to read...

Resolution

Please reset the repository copy on Heroku using the steps here:
https://devcenter.heroku.com/articles/git#resetting-a-git-repository

This will make it possible to push the code to Heroku git without the error.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support