1

这是我的代码:

$ 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。

4

1 回答 1

1

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

从您的 GitHub 帐户看,好像问题在于您创建了一个名为perrydu.github.com的存储库,但您使用的 URL 引用的存储库originPerrydu.github.com。GitHub 存储库的名称区分大小写,所以我会进入 GitHub 管理界面,找到以小写命名的存储库 ( perrydu.github.com) 并将其重命名为Perrydu.github.com.

然后,几分钟后,您之前尝试过的 push 命令应该可以工作了。

于 2012-10-06T12:21:48.833 回答