fatal: ‘heroku’ does not appear to be a git repository

If this error pops up, its because there is no remote named heroku. When you do a heroku create, if the git remote doesn’t already exist, we automatically create one (assuming your in a git repo). To view your remotes type in:

“git remote -v”. # For an app called ‘appname’ you will see the following:

$ git remote -v
heroku git@heroku.com:appname.git (fetch)
heroku git@heroku.com:appname.git (push)

If you see a remote for your app, you can just “git push master” and replace with the actual remote name.

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

“git remote add heroku git@heroku.com:appname.git”



If you’ve already added a remote called heroku, you may get an error like this:

“fatal: remote heroku already exists.”

so, then remove the existing remote and add it again with the above command:

“git remote rm heroku”

Hope this helps… 


One comment

  1. you save my life! it’s works! thanks a lot!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: