在Heroku应用程序名称更改后,Git推送失败 [英] Git push failing after Heroku app name change
问题描述
我在Heroku仪表板中将我的应用程序名称从my-app-staging更改为my-app-staging-new。现在我无法再对其进行更改 - git会抛出以下错误:
!
致命:无法从远程存储库读取数据。
如何解决这个问题?
您需要更改您的git remote。
如果您执行 git remote -v
,您应该看到 heroku
列出。
它看起来像这样:
删除那个远程... ...然后添加新的 I changed my app name from "my-app-staging" to "my-app-staging-new" in the Heroku dashboard. Now I can no longer push changes to it- git throws the following error: ! No such app as my-app-staging. fatal: Could not read from remote repository. How do I resolve that? You need to change your git remote. If you do It will look something like: Delete that remote... ...and then add the new one 这篇关于在Heroku应用程序名称更改后,Git推送失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! heroku git@github.com:my -app-staging.git(fetch)
heroku git@github.com:my-app-staging.git(push)$ c
git remote rm heroku
git remote add heroku git@heroku.com:my-app-staging-new.git
git remote -v
you should see heroku
listed.heroku git@github.com:my-app-staging.git (fetch)
heroku git@github.com:my-app-staging.git (push)
git remote rm heroku
git remote add heroku git@heroku.com:my-app-staging-new.git