'heroku' does not appear to be a git repository

Tim picture Tim · Aug 23, 2013 · Viewed 143.6k times · Source

When I try to push my app to Heroku I get this response:

fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I have tried 'heroku keys:add' but still comes up with the same result. I already have an ssh key for my GitHub account.

Answer

user2062950 picture user2062950 · Aug 23, 2013

To add a Heroku app as a Git remote, you need to execute heroku git:remote -a yourapp.

Source: Deploying with Git