-
Notifications
You must be signed in to change notification settings - Fork 0
Forking a Github Wiki locally
Shamik edited this page Mar 11, 2022
·
4 revisions
Source Cloning a Wiki and adding it to the forked repo
There isn't a common way to fetch the Wiki from a forked repo but the workaround suggested in the above link is the following:
- 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 main
Above instructions are provided by an user
However, if one wants to clone a Wiki to local then one can do the following, the code below forks the Wiki from this repo:
git clone https://github.com/shamik-biswas-rft/CodeSnippets.wiki.git