这是我的代码:
$ 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-bootstrap一样,我也是这样做的。
发布于 2012-10-06 20:21:49
我假设您正在执行下面描述的步骤:
从您的GitHub帐户来看,问题好像是您已经创建了一个名为perrydu.github.com的存储库,但您使用origin的URL所引用的存储库是Perrydu.github.com。GitHub存储库的名称区分大小写,因此我将进入以小写字母命名的存储库(perrydu.github.com)的GitHub管理界面,并将其重命名为Perrydu.github.com。
然后,几分钟后,您之前尝试的push命令应该会起作用。
https://stackoverflow.com/questions/12759681
复制相似问题