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