github hello world出现错误

时间:2014-03-21 16:05:57

标签: macos git github

test afrieden$ mkdir hello-world
test afrieden$ cd hello-world/
hello-world afrieden$ git init
Initialized empty Git repository in /Users/afrieden/test/hello-world/.git/
hello-world afrieden$ touch README
hello-world afrieden$ git add README
hello-world afrieden$ git commit -m "first message"
[master (root-commit) 881750d] first message
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README
hello-world afrieden$ git remote add origin git@github.com:alexfrieden/hello-world.git
hello-world afrieden$ git push origin master
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

为什么我收到此错误?我正确地设置了我的ssh。

1 个答案:

答案 0 :(得分:1)

为此,您需要先在GitHub端创建回购。

现在,https://github.com/alexfrieden/hello-world返回404。