Fork GitHub Project with Custom Wiki

When formatting a project on GitHub, wikis are cloned from the original project.

Can I assume that I can make any changes (delete pages, edit pages) to my forked wiki without changing the wiki at the top?

I searched Google, Stack Overflow, and GitHub documentation without finding information about this :(

+6
source share
3 answers

GitHub Viking does not support its wiki repo. An invisible wiki is created in place of the plug, and any changes to it cannot be combined using download requests. A workaround to this is to clone the local GitHub local network, then paste it into a separate repository or separate wiki repository, for example:

git clone https://github.com/user1/project.wiki.git git remote add my-fork https://github.com/user2/project.wiki.git git push my-fork master 

To sync a wiki:

 git pull origin master git push my-fork master 
+11
source

To clarify all the steps when using SSH.

 git clone git@github.com :User1/Repo1.wiki.git cd Repo1.wiki # Now enable Wiki pages in Repo2 git remote add my-fork git@github.com :User2/Repo2.wiki.git 

Please note the use : vs. / when using SSH. If something goes wrong, you cannot just repeat this command, so you need to manually change the URL. To check what this indicates, use:

 git config --local -l # For example, this is wrong: # remote.my-fork.url=git@github.com /User2/Repo2.wiki.git 

If this is not correct, set the correct URL:

 git config --local remote.my-fork.url git@github.com :User2/Repo2.wiki.git 

Now you can continue:

 git push my-fork -f --no-tags 

Where -f is shorthand for --force to overwrite all refs .

+1
source

2015/2016 update: you need to clone the wiki separately

And wiki does not support pull request anyway .


2013 (Original answer): As shown in this project, the GitHub widget will clone:

So, you can develop the wiki and update the wiki without changing anything on the upstream source repository (the one you forked)

0
source

Source: https://habr.com/ru/post/946044/


All Articles