xxxxxxxxxx
git add .
git commit -m "heroku commit"
heroku git:remote -a YOUR_APP_NAME
git push heroku master
xxxxxxxxxx
Use first
heroku git:remote -a yourapp
yourapp is the name of the heroku app
and if git push heroku main fails
use git push heroku master