How do I clone a GitHub wiki?

GithubWikiGit Clone

Github Problem Overview


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.

Github Solutions


Solution 1 - Github

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)

Solution 2 - Github

You can clone the git wiki using following command.

git clone https://github.com/<git-username>/<repo-name>.wiki.git

Solution 3 - Github

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.

Solution 4 - Github

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionjoseph.hainlineView Question on Stackoverflow
Solution 1 - Githubjoseph.hainlineView Answer on Stackoverflow
Solution 2 - GithubVenus713View Answer on Stackoverflow
Solution 3 - GithubNeeraj BansalView Answer on Stackoverflow
Solution 4 - GithubBegueradjView Answer on Stackoverflow