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.