Reputation: 53
I created a cedar stack from git console and changed the default app name set by Heroku from the Heroku web app. Now when I push the new updates from git, getting an error -App not found. How to set it right?
Upvotes: 0
Views: 64
Reputation: 18446
Like niko_ekito wrote in his answer, you can edit the .git/config
file by hand. But you can also use Heroku's command line client:
$ git remote rm heroku
$ heroku git:remote -a newname
Or you can use git remote set-url
:
$ git remote set-url heroku [email protected]:newname.git
Upvotes: 2
Reputation: 21564
You have to update your local git config by editing the .git/config
file and putting the new name.
Your git config should look like this:
[remote "heroku"]
url = [email protected]:oldname.git
fetch = +refs/heads/*:refs/remotes/heroku/*
And the new:
[remote "heroku"]
url = [email protected]:newname.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Upvotes: 2