1) 我在浏览 heroku 时不小心删除了我的 heroku 应用程序。
2) 我运行了 heroku create 并得到了这个:
heroku create
Your version of git is 2.1.2. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
Creating polar-cove-4803... done, stack is cedar-14
https://polar-cove-4803.herokuapp.com/ | https://git.heroku.com/polar-cove-4803.git
3) 在运行 heroku create 之后,我运行了这个命令:
git push heroku master
remote: ! No such app as murmuring-dawn-5953.
fatal: repository 'https://git.heroku.com/murmuring-dawn-5953.git/' not found
4) 如何重置 heroku Remote 并删除此 Remote ,以便当我这样做时
git push heroku master
它推送到正确的 Remote ?
最佳答案
将 heroku
远程更改为新项目的 git URL
git remote set-url heroku https://git.heroku.com/polar-cove-4803.git
这会将您的 Remote 设置为您的新项目,您应该能够
git push heroku master
关于git - 意外删除 heroku 上的应用程序后无法推送到 heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28749771/