how to change heroku git remote code example Example 1: git push to heroku $ git push heroku master Example 2: heroku git remote heroku git:remote -a name-of-app