how to update heroku app code example

Example 1: git push to heroku

$ git push heroku master

Example 2: heroku git remote

heroku git:remote -a name-of-app

Example 3: how to update heroku terminal

$ brew tap heroku/brew && brew install heroku

Example 4: how to update heroku

heroku update
#(OR)
sudo apt update && sudo apt install heroku
# to update heroku

Example 5: heroku and github on termi

$ git push heroku master
Initializing repository, done.
updating 'refs/heads/master'
...

Example 6: heroku and github on termi

$ git remote rename heroku heroku-staging