git push Heroku main – error: src refspec main does not match any

The default branch is normally called master, not main.
So, normally git push heroku master works.

Your error src refspec main does not match any seems to indicate that the branch main does not exist.

Are you sure that your branch is called main?

Leave a Comment