'heroku'似乎不是一个git存储库 [英] 'heroku' does not appear to be a git repository

查看:71
本文介绍了'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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆