Search code examples
githubwikigit-clone

How do I clone a GitHub wiki?


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 and ...reponame.git/wiki, but neither are correct.


Solution

  • Append .wiki.git to the repository name.

    That is, if your repository name was foobar:

    git clone [email protected]:myusername/foobar.git would be the path to clone your repository

    and

    git clone [email protected]: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)