ruby-on-rails - heroku git repo 更改

标签 ruby-on-rails ruby git heroku

Muhammed-Bhikhas-MacBook-Pro:mashs_wing_ranch BH1KH4$ git remote -v
heroku  <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7f18160b3f171a0d10140a511c1012" rel="noreferrer noopener nofollow">[email protected]</a>:sleepy-cliffs-9120.git (fetch)
heroku  <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="03646a77436b66716c68762d606c6e" rel="noreferrer noopener nofollow">[email protected]</a>:sleepy-cliffs-9120.git (push)
origin  <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0b7b9a490b8b5a2bfbba5feb3bfbd" rel="noreferrer noopener nofollow">[email protected]</a>:gentle-bastion-5131.git (fetch)
origin  <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d2a24390d25283f222638632e2220" rel="noreferrer noopener nofollow">[email protected]</a>:gentle-bastion-5131.git (push)

当我运行 git remote -v 时,我得到了错误的 heroku 应用程序。这是我以前拥有的应用程序,如何将 sleepy-cliffs-9120.git 更改为我的新应用程序 gentle-bastion-5131

最佳答案

git remote set-url heroku <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b7d0dec3f7dfd2c5d8dcc299d4d8da" rel="noreferrer noopener nofollow">[email protected]</a>:gentle-bastion-5131.git

关于ruby-on-rails - heroku git repo 更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14003790/

相关文章:

ruby-on-rails - 无法从 gem (Twilio-ruby) 调用方法,似乎正在我的 Controller 中查找,如何正确确定其范围?

使用 MySQL 5.6 在 CentOS 6.4 x64 上安装 mysql2 gem 失败

git - 可以在 git hook 中自定义 GIT_COMMITTER_DATE 吗?

linux - Git hooks 可能需要更高的权限

ruby-on-rails - Rails - 如何获取当前更新记录的 ID(使用 "update_all")?

mysql - MacOS 10.14 安装和 brew 更新后无法安装 mysql gem

ruby-on-rails - 在 ruby​​ 中创建逗号分隔的 csv 文件

git - 使用 Ansible 从 Bitbucket 克隆一个 git repo - 要求密码两次或三次

ruby-on-rails - 为什么 Rake 任务增强在我的本地环境和部署到 Heroku Cedar 时有所不同?

ruby-on-rails - Ruby - 增加代理请求超时