git - 意外删除 heroku 上的应用程序后无法推送到 heroku

标签 git heroku

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/

相关文章:

git - 如何在使用 'git checkout' 时将 zsh 配置为自动完成分支名称?

git - 清除 Bitbucket 上的 git 存储库?

ruby-on-rails - Spotify 回调 URI 错误

git - 如何协调分离的 HEAD 与 master/origin?

git - 删除已从提交历史记录中推送的提交

git - 未出现在任何分支中但在 "git show"中可用的提交发生了什么

Java Maven 项目 - 错误 R10(启动超时)-> Web 进程在启动后 90 秒内无法绑定(bind)到 $PORT

javascript - 错误 : Cannot resolve module 'babel-loader'

ruby-on-rails - 自定义 Rails 记录器的方法

php - Facebook 应用程序的结果在本地和 Heroku 上有所不同