我的本地git存储库在git remotes中引用了多个应用程序。我能';不要推到heroku

我的本地git存储库在git remotes中引用了多个应用程序。我能';不要推到heroku,git,heroku,Git,Heroku,我无法将我的应用部署到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 th

我无法将我的应用部署到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推送heroku主机 #我在我的应用程序中运行此程序,并收到该应用程序的错误消息。 我检查“/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/***
我如上所述注释掉“heroku”命令,然后再次像这样运行push命令:

->git推送源主机


问题解决了

我们在这里缺少一些上下文。。。你执行的git命令是什么?git-push-heroku-master。我最初删除了应用程序,使用heroku create创建了一个新的应用程序,因此我必须设置一个新的远程url。您是否尝试过错误日志所示的git push heroku master--app?是的。仍然无法工作检查您的.git/config并保留所需的文件。