【发布时间】:2020-07-20 12:11:30
【问题描述】:
我无法将我的应用程序部署到 heroku。 git remote 中的多个应用程序。我该如何解决这个问题?
Error: Multiple apps in git remotes
Usage: --remote origin
or: --app arcane-scrubland-65909
Your local git repository has more than 1 app referenced in git
remotes.
Because of this, we can't determine which app you want to run this
command against.
Specify the app you want with --app or --remote.
Heroku remotes in repo:
secure-badlands-61058 (heroku)
arcane-scrubland-65909 (origin)
【问题讨论】:
-
我们在这里缺少一些上下文...您执行的 git 命令是什么?
-
git push heroku master。我最初删除了该应用程序,使用 heroku-create 创建了一个新应用程序,因此我不得不设置一个新的远程 url..
-
您是否按照错误日志的提示尝试过
git push heroku master --app <app-name>? -
是的,我有。还是不行
-
检查你的 .git/config 并保留需要的那个。