【问题标题】:GitHub: Using wiki locally: Error when making initial push to GitHub wikiGitHub:在本地使用 wiki:初始推送到 GitHub wiki 时出错
【发布时间】:2017-03-02 18:02:26
【问题描述】:

这个问题我找了很多次,还是没解决。

说,我从 user1 派生了一个 repo(我们将其命名为 repo1),现在我也想派生该 repo 的 Wiki 部分,which GitHub won't do for you when you fork the repo

我尝试了这些命令:

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

这意味着我无法成功地将这个本地 wiki 推送到我的分叉存储库的 Wiki 部分。

有人知道这里出了什么问题吗?
谢谢。

【问题讨论】:

    标签: git github git-push wiki gollum-wiki


    【解决方案1】:

    您需要先在您的 GitHub 存储库中创建 wiki:

    1. 在浏览器中打开以下网址:

      https://github.com/myid/repo1/wiki
      
    2. 创建第一页,然后按保存页面按钮:

    现在可以推送了(第一次推送应该是-f选项):

    git push -f my-fork
    

    【讨论】:

    猜你喜欢
    • 2012-08-01
    • 2023-03-20
    • 2017-07-28
    • 2012-09-12
    • 2021-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多