如何推进heroku?

如何推进heroku?,heroku,github,push,Heroku,Github,Push,我克隆了我的回购协议并更改了某些内容并提交 但是,当我想像教程一样推动时: git push heroku master 它告诉我错了: 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.

我克隆了我的回购协议并更改了某些内容并提交

但是,当我想像教程一样推动时:

git push heroku master
它告诉我错了:

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.
我肯定我已经登录了

那么我如何才能正确地推送我的repo并部署它呢?

来自Git Reference():

“因此,您不必每次都使用远程存储库的完整URL进行同步,Git会为您感兴趣的每个远程存储库URL存储一个别名或昵称。您可以使用Git remote命令来管理您关心的远程回购列表。”

您可以使用以下方法检查git repo是否存在名为“heroku”的远程服务器:

git remote -v
如果它不存在,您需要添加它,然后才能按如下方式推送更新:

git remote add heroku git@heroku.com:appname.git 

其中appname应该是应用程序的名称

添加git remote-v的结果