-6

在我的上一篇文章(无法推送到 git hub)中,我说我正在开始 ch。2 在 Hartl 的 Ruby on Rails 教程中。我已经得到了ch中的所有东西。1 工作并按照 ch 中的规定完成了所有工作。2.但是当我尝试这样做时:

$ git push -u origin master

我得到回应:

ERROR: repository not found
fatal: could not read from remote repository
Please make sure you have the correct access rights and that the repository exists.

从那时起,我做了:

ssh -T git@github.com.

回应是

Hi username! Your have successfully authenticated, etc.

我也做过:

git remote -v.

回应是

origin git@github.com:myusername/demo_app.git (fetch)
origin git@github.com:myusername/demo_app.git (push)

在我看来,这表明一切正常,但我仍然收到相同的错误消息。

4

1 回答 1

2

来自您的推送命令的错误消息显示“找不到存储库”。这意味着您还没有在 github 上创建远程存储库。

转到https://github.com/new并创建一个名为demo_app.

于 2012-12-21T04:26:17.107 回答