【问题标题】:remote prod not found in git remotes在 git 遥控器中找不到远程产品
【发布时间】:2017-06-20 00:44:26
【问题描述】:

所以,git 以某种方式看到了我所有应用程序的遥控器,但在被要求时无法使用它们:

❯ git remote -v
...
prod    https://git.heroku.com/my-app.git (fetch)
prod    https://git.heroku.com/my-app.git (push)
...

❯ heroku run rails c -r prod --verbose
 ▸    remote prod not found in git remotes

同时,--application 工作正常

❯ heroku run rails c -a my-app
Running rails c on ⬢ my-app... ⣷ connecting, run.4544 (Standard-1X)

【问题讨论】:

  • 这个问题似乎是关于heroku,而不是Git。不应该有不同的标签吗?
  • 正如 torek 所说,我相信这个问题与 heroku 有关。您正在调用 heroku 命令,如果您直接执行 git 命令,我不相信您会对 git 有任何问题
  • GitHub查看这个问题。
  • 是的,看起来你们是对的人

标签: git heroku heroku-toolbelt


【解决方案1】:

所以,我不知道是什么破坏了它,但是重新运行 git:remote 修复了它

heroku git:remote -r prod -a my-app-prod 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-11-16
    • 2012-08-01
    • 1970-01-01
    • 2014-10-28
    • 2013-10-18
    • 2010-12-07
    • 2017-12-20
    相关资源
    最近更新 更多