在我的上一篇文章(Can't push to git hub)中,我说我开始了。 2在Hartl的Ruby on Rails教程中。我得到了所有的东西。 1工作,并通过本书完成了所有工作。但是当我尝试做的时候:
$ 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)
在我看来,这表明一切正常,但我仍然收到相同的错误消息。
答案 0 :(得分:2)
来自push命令的错误消息显示“找不到存储库”。这意味着您尚未在github上创建远程存储库。
转到https://github.com/new并创建名为demo_app
的存储库。