heroku cli deploy app from github code example
Example 1: how to force push to heroku
git push --force heroku master
Example 2: heroku and github on termi
$ git push heroku master
Initializing repository, done.
updating 'refs/heads/master'
...
git push --force heroku master
$ git push heroku master
Initializing repository, done.
updating 'refs/heads/master'
...