0

我克隆了我的仓库并更改了一些内容并提交,

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

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.

我确定我已经登录了

那么我怎样才能正确推送我的回购并部署它呢?

4

1 回答 1

0

来自 Git 参考 ( http://gitref.org/remotes/#remote ):

“这样你就不必每次想要与远程仓库同步时都使用它的完整 URL,Git 会为每个你感兴趣的远程仓库 URL 存储一个别名或昵称。你使用 git remote 命令来管理您关心的远程存储库列表。”

您可以使用以下命令检查您的 git 存储库是否存在名为“heroku”的远程:

git remote -v

如果它不存在,则需要添加它才能推送更新,如下所示:

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

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

于 2013-07-20T14:38:12.180 回答