Duplicate GitHub Wiki

Related: Moving GitHub Wiki


The GitHub API v4 does not include Wikis. The GitLab API v4 does include Wikis.

Thus, to duplicate a GitHub repo AND the GitHub Wiki benefits from a little scripting help.

An example solution is in GitEDU. This requires manually clicking to enable the new wiki via a web browser for each repo wiki.

GitHub Wiki Git accessibility

In general, GitHub Wiki is just another Git repo. The URL for the GitHub Wiki is obtained by appending .wiki.git to the associated GitHub repo URL.

Example:

  • Main repo is https://github.com/username/reponame
  • Wiki repo is https://github.com/username/reponame.wiki.git