In June 2019, here’s how I did that:
- Fork a repo. The wiki is not forked automatically. So your fork will have empty wiki.
- Create a wiki in the forked repo. Just create an empty Home page or whatever.
- Clone the git repo of original wiki:
git clone https://github.com/org-a/project-x.wiki.git
- Assuming your forked repo now sits in
https://github.com/org-b/project-x
, add the new remote to the wiki repo:git remote add fork https://github.com/org-b/project-x.wiki.git
- Do the force push to overwrite your wiki with the original
git push -f fork master
Great. Now you have forked a repo and its wiki.
(By the way, Github should do this automatically, right?)