Github:错误:未找到存储库。致命:远程端意外挂断(不同)

时间:2012-10-06 12:11:18

标签: github jekyll

这是我的代码:

$ git clone https://github.com/Perrydu/jekyll-plumbious.git Perrydu.github.com
$ cd Perrydu.github.com
$ git remote set-url origin git@github.com:Perrydu/Perrydu.github.com.git
$ git push origin master

终端:

Last login: Sat Oct  6 19:54:15 on ttys000
Dus-MacBook-Pro:~ Perry$ $ git clone https://github.com/Perrydu/jekyll-plumbious.git Perrydu.github.com
-bash: $: command not found
Dus-MacBook-Pro:~ Perry$ git clone https://github.com/Perrydu/jekyll-plumbious.git Perrydu.github.com
Cloning into Perrydu.github.com...
remote: Counting objects: 34, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 34 (delta 3), reused 30 (delta 3)
Unpacking objects: 100% (34/34), done.
Dus-MacBook-Pro:~ Perry$ cd Perrydu.github.com
Dus-MacBook-Pro:Perrydu.github.com Perry$ git remote set-url origin git@github.com:Perrydu/Perrydu.github.com.git
Dus-MacBook-Pro:Perrydu.github.com Perry$ git push origin master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
Dus-MacBook-Pro:Perrydu.github.com Perry$

jekyll-plumbious.git是我的项目,如jekyll-bootstrap。

1 个答案:

答案 0 :(得分:1)

我假设您按照此处描述的步骤进行操作:

它从您的GitHub帐户看起来好像问题是您创建了名为perrydu.github.com的存储库,但您引用的存储库origin的网址是{{ 1}}。 GitHub存储库的名称区分大小写,因此我将进入GitHub管理界面以获取小写命名存储库(Perrydu.github.com)并将其重命名为perrydu.github.com

然后,几分钟后,您之前尝试过的推送命令应该可以正常工作。