Heroku – ‘heroku’ does not appear to be a git repository

herokussh

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.

Best Answer

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

Source: Deploying with Git