If you already have the heroku app and want to connect it you can use the cli to list your apps heroku apps
=== name@email.com Apps
app_name
app_name_2
Then connect it with can use heroku git:remote -a app_name
as well
From this question: How to connect to the selected app with heroku CLI
It is worth noting that this does basically the same thing as creating the remote as @rdegges suggested.
You can check to make sure you are
- In the correct (git) directory and have cloned it down
- Have the heroku remote to push to
By running git remote -v
, should look something like this:
heroku https://git.heroku.com/app_name.git (fetch)
heroku https://git.heroku.com/app_name.git (push)
origin git@ssh.route/app_name.git (fetch)
origin git@ssh.route/app_name.git (push)
Found a very well thought out and thorough answer to heroku in general here: https://stackoverflow.com/a/5129733/5491808