gpt4 book ai didi

Heroku 应用程序名称更改后 Git 推送失败

转载 作者:太空狗 更新时间:2023-10-29 12:49:12 24 4
gpt4 key购买 nike

我在 Heroku 仪表板中将我的应用程序名称从“my-app-staging”更改为“my-app-staging-new”。现在我无法再将更改推送到它 - git 抛出以下错误:

! No such app as my-app-staging.

fatal: Could not read from remote repository.

我该如何解决?

最佳答案

您需要更改您的 git Remote 。

如果你执行 git remote -v 你应该会看到列出了 heroku

它看起来像:

heroku git@github.com:my-app-staging.git(获取)
heroku git@github.com:my-app-staging.git(推送)

删除那个 Remote ...

git remote rm heroku

...然后添加新的

git remote add heroku git@heroku.com:my-app-staging-new.git

关于Heroku 应用程序名称更改后 Git 推送失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21941015/

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