Reputation: 681
So I have a private repository on GitHub but would like to make the Wiki public so anyone can see it.
Is this possible?
Upvotes: 12
Views: 8410
Reputation: 12555
Best thing I found was that Github pages now gives you an option to publish from a "docs" folder:
You could copy the wiki files there, or get fancy, and setup a submodule in that directory that would pull from the wiki repo associated with the primary repo. But don't forget that anything in this folder will now be public, which is good if you want to expose the wiki, but bad if anyone decides to put some other kinds of "docs" in there-
Upvotes: 6
Reputation: 602495
Fork the repository, delete all contents by creating a new orphan master branch, force-pushing master and pruning all other branches, make the fork public.
Alternatively, create a new empty repository, create a dummy wiki page on that new repostitory, check out the wiki of the old repository and push it to the new:
git clone [email protected]:user/old-repo.wiki.git
cd old-repo
git remote add new [email protected]:user/new-repo.wiki.git
git push -f master new
Both these solutions result in two repositories: The old, private one that contains the data, and the new public one with the wiki. You can then delete the old wiki.
Upvotes: 14