gpt4 book ai didi

ruby-on-rails - 如何更改部署 heroku 应用程序的提取和推送操作目标

转载 作者:太空宇宙 更新时间:2023-11-03 18:26:23 25 4
gpt4 key购买 nike

现在,当我在我的应用程序目录中时在终端中键入 git remote -v 时,我得到:

heroku  git@heroku.com:falling-samurai-3043.git (fetch)
heroku git@heroku.com:falling-samurai-3043.git (push)

origin git@github.com:obsideous/sample_app.git (fetch)
origin git@github.com:obsideous/sample_app.git (push)

falling-smurai-3043 不再存在,因为我从 heroku 网站上的帐户中销毁了它。我希望它看起来像:

heroku  git@heroku.com:(one that I create).git (fetch)
heroku git@heroku.com:(one that I create).git (push)

origin git@github.com:BigBoy1337/sample_app.git (fetch)
origin git@github.com:BigBoy1337/sample_app.git (push)

obsideous 是我的旧帐户,BigBoy1337 是我正在尝试将所有内容切换到的新 GitHub 帐户。
我怎样才能完成这些更改。我对这些东西一窍不通,所以越详细越好。谢谢!

最佳答案

您可以通过键入 (git remote man page) 来更改远程名称:

git remote set-url heroku git@heroku.com:(one that I create).git
git remote set-url origin git@github.com:BigBoy1337/sample_app.git

这将更新您的 git config 文件中的 pushfetch 地址。

关于ruby-on-rails - 如何更改部署 heroku 应用程序的提取和推送操作目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10408480/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com