user1796260
user1796260

Reputation: 297

Can't push on heroku

I’ve just cloned one of my repositories on github, I've made some changes and I would like to send it on the heroku application. But when I try to run git push heroku master, I get :

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.

What can I do to solve it?

Upvotes: 2

Views: 4010

Answers (3)

mote
mote

Reputation: 1

If you have followed the steps in tutorial you just need to login in again:

cmd "heroke login"

Upvotes: 0

Anconia
Anconia

Reputation: 4038

This is because there's no remote named heroku. You can see your remotes by typing git remote -v. For my 'example' app I see the following:

$ git remote -v
heroku [email protected]:example.git (fetch)
heroku [email protected]:example.git (push)

If it's missing, you can add the remote with the following command:

git remote add heroku [email protected]:example.git

where example is the name of your heroku app.

Upvotes: 2

CuriousMind
CuriousMind

Reputation: 34175

Before you can do

$ git push heroku master

you need to setup heroku by following the steps given at Getting Started with Heroku. Once you have setup heroku, logged in,created your app.

Verify that git remote is added

$ git remote -v

it should list a remote named heroku. if it does then the error heroku' does not appear to be a git repository will go away

Upvotes: 2

Related Questions