在git remotes中找不到远程prod

在git remotes中找不到远程prod,git,heroku,heroku-toolbelt,Git,Heroku,Heroku Toolbelt,因此,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 同时,--应用程序运行

因此,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
同时,--应用程序运行良好

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

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

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

这个问题似乎与heroku有关,而不是Git。它不应该有不同的标签吗?正如torek所说,我相信这个问题与heroku有关。您正在调用一个heroku命令,如果您直接执行git命令,我相信您不会对git有任何问题。请参阅上的这个问题。是的,看起来您是对的