Reputation: 1312
I deleted my Heroku app from the management console, but when I tried to create a new app using the same repository it is still trying to push to the old app, I ran the following command to see the git files
git remote -v
which returned these files
origin [email protected]:Jbur43/all-bugs-aside.git (fetch)
origin [email protected]:Jbur43/all-bugs-aside.git (push)
I them tried running git rm all-bugs-aside.git
and git rm [email protected]:Jbur43/all-bugs-aside.git
and git rm all-bugs aside
I also tried running all of those commands with -rf, but I could not get the files to delete.
Can someone help me with the syntax needed to remove these files and also once they are removed I should be able to create a new heroku app and push to git push heroku master
, correct?
Upvotes: 1
Views: 2039
Reputation: 7167
Remove the remote that points to heroku ("origin" is the remote's name): git remote rm origin
Other .git files aren't Heroku's files but your project's source control.
Upvotes: 5