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