在github中分叉,克隆并推送wiki

时间:2016-10-20 16:11:51

标签: git github wiki git-clone

我多次搜索此问题,但仍然无法解决。

假设我从user1分叉一个repo(命名为repo1),现在我想分叉repo1的wikipage,当你分叉回购时,github不会为你做这个。

我试过了:

    git clone https://github.com/user1/repo1.wiki.git
    git remote add my-fork https://github.com/myid/repo1.wiki.git
    git push my-fork master

但终端说:

    fatal: remote error: access denied or repository not exported: /3/nw/32/2b/9e/135236793/71478887.wiki.git

这意味着我无法成功将此本地维基推送到我的分叉回购邮件中。

有没有人对这里发生的事情有所了解?

感谢。

PS:Fork GitHub project with custom wiki

1 个答案:

答案 0 :(得分:11)

首先需要在你的github帐户中创建wiki 打开浏览器

https://github.com/myid/repo1/wiki

按创建第一页并保存 create wiki 现在你可以推(第一次推送应该是-f)

git push my-fork -f