gpt4 book ai didi

heroku - 'git push heroku master' 命令返回 'fatal: Could not read from remote repository'

转载 作者:行者123 更新时间:2023-12-04 00:07:40 28 4
gpt4 key购买 nike

当我打字时,git push heroku master ,我得到:

!  No such app as sleepy-headland-6232.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

当我这样做时 git remote -v ,我得到:
heroku  git@heroku.com:sleepy-headland-6232.git (fetch)
heroku git@heroku.com:sleepy-headland-6232.git (push)
origin git@github.com:fackthisshit/github.git (fetch)
origin git@github.com:fackthisshit/github.git (push)

所以我做 git remote add heroku git@heroku.com:sleepy-headland-6232.git ,但后来我得到 fatal: remote heroku already exists .

这就像一个无限循环的大梁。我怎样才能摆脱这个循环?

最佳答案

您不需要创建新应用程序,有时当您在 Heroku 中重命名应用程序时,您会失去与 Remote 的连接。

修复它

只需删除旧的 heroku Remote :

git 远程 rm heroku

并添加新的:

git 远程添加 heroku git@heroku.com:name-to-the-new-one

如果您不知道链接地址,可以在应用程序设置中的 heroku 仪表板中获取。就是这样。

关于heroku - 'git push heroku master' 命令返回 'fatal: Could not read from remote repository',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20263321/

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