“heroku"似乎不是 git 存储库 [英] 'heroku' does not appear to be a git repository
本文介绍了“heroku"似乎不是 git 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试将我的应用推送到 Heroku 时,我得到了以下响应:
When I try to push my app to Heroku I get this response:
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我尝试过 'heroku keys:add' 但仍然得到相同的结果.我的 GitHub 帐户已经有一个 ssh 密钥.
I have tried 'heroku keys:add' but still comes up with the same result. I already have an ssh key for my GitHub account.
推荐答案
要将 Heroku 应用添加为 Git 远程,您需要执行 heroku git:remote -a yourapp
.
To add a Heroku app as a Git remote, you need to execute heroku git:remote -a yourapp
.
来源:使用 Git 部署
这篇关于“heroku"似乎不是 git 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文