我无法将我的应用程序部署到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)
Run Code Online (Sandbox Code Playgroud)
小智 3
我检查了“./git/”下的“config”文件,它显示了 2 个应用程序:
[remote "origin"]
url = https://git.heroku.com/yinow.git
fetch = +refs/heads/*:refs/remotes/origin/*
**# [remote "heroku"]
# url = https://git.heroku.com/yinow.git
# fetch = +refs/heads/*:refs/remotes/heroku/***
Run Code Online (Sandbox Code Playgroud)
我注释掉上面的“heroku”,然后再次运行推送命令,如下所示:
-> git Push 原点大师
问题就消失了!