views:

438

answers:

2

I am trying to push my app to heroku and I get the following message:

$ heroku create
Creating electric-meadow-15..... done
Created http://electric-meadow-15.heroku.com/ | [email protected]:electric-meadow-1
5.git

$ git push heroku master

 !  No such app as fierce-fog-63

fatal: The remote end hung up unexpectedly

It's weird that I am getting this now, I have pushed the app to heroku many times without issue. the especially weird thing is, fierce-fog-63 is an old app that I made and deleted a long time ago. Why is it now that heroku is trying to push to this app that doesn't exist anymore, especially when I have created a new one? Any suggestions?

+2  A: 

Type this and I think you'll see the problem:

git remote -v

Fix it like this:

git remote rm heroku
git remote add heroku [email protected]:electric-meadow-15.git
Adam Wiggins
that worked...but now it is giving me this message:$ git push heroku masterCounting objects: 1652, done.Delta compression using up to 4 threads.fatal: object 91f5d3ee9e2edcd42e961ed2eb254d5181cbc734 inconsistent object length (476 vs 8985)error: pack-objects died with strange errorerror: failed to push some refs to '[email protected]:floating-stone-94.git'
Ryan Max
+1  A: 

I was getting the second error you posted "failed to push some refs to '[email protected]:floating-stone-94.git' " (with a different app name) and i got rid of it by doing the following:

git remote rm heroku
heroku create

you should see a line that says 'Git remote heroku added'. Also

git remote -v

should now have the correct app.

ajivani