How do I clone a GitHub wiki?

前端 未结 3 2059
孤街浪徒
孤街浪徒 2020-11-28 19:02

How do I clone my GitHub repository\'s wiki? I know it\'s saved as a separate Git repository, but I can\'t remember the path.

I\'ve tried ...reponame/wiki.git<

相关标签:
3条回答
  • 2020-11-28 19:23

    Append .wiki.git to the repository name.

    That is, if your repository name was foobar:

    git clone git@github.com:myusername/foobar.git would be the path to clone your repository

    and

    git clone git@github.com:myusername/foobar.wiki.git would be the path to clone its wiki.

    Note: You must have at least one page to be able to clone the wiki repo. (via @tobiasz-cudnik)

    0 讨论(0)
  • 2020-11-28 19:33

    The syntax for cloning Github wiki repository is:

    git clone [RepositoryName].wiki.git
    

    If it's a private repository, then you'll prompted to enter your username/password.

    0 讨论(0)
  • 2020-11-28 19:34

    The Wiki pages are managed as a repository. So click on your repository, then on the left side click on Wiki. Finally on the upper right corner click on Clone Repository. There you will clear instructions on how to clone it correctly.

    0 讨论(0)
提交回复
热议问题