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 through the procedure below:

heroku plugins:install heroku-repo
heroku repo:reset -a <app-name>

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
Terms of Service Privacy Cookies © 2020 Salesforce.com