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
?
More Related Contents:
- Prevent Django SQLite db from being overwritten while pushing to Heroku
- Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly
- Heroku – Handling static files in Django app
- No web processes running Django in heroku
- Getting ‘DatabaseOperations’ object has no attribute ‘geo_db_type’ error when doing a syncdb
- Using Heroku for Django Media Files
- Heroku app database resetting
- Heroku: Django database file lost on every dyno restart
- Django static files on heroku
- Deploying Django to Heroku (Psycopg2 Error)
- Collectstatic error while deploying Django app to Heroku
- Proper way to handle multiple forms on one page in Django
- Cannot push to Heroku because key fingerprint
- Using a UUID as a primary key in Django models (generic relations impact)
- Django ManyToMany filter()
- Limit foreign key choices in select in an inline form in admin
- Django get the static files URL in view
- Confusion in Django admin, static and media files
- ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» when running rake assets:precompile on production
- Django multi-select widget?
- Where can I find the error logs of nginx, using FastCGI and Django?
- Django’s self.client.login(…) does not work in unit tests
- Django “xxxxxx Object” display customization in admin action sidebar
- How to install libpq-fe.h?
- List field in model?
- Django class based view ListView with form
- Django – limiting query results
- Authorization Credentials Stripped — django, elastic beanstalk, oauth
- Django query case-insensitive list match
- Django: Using F arguments in datetime.timedelta inside a query