CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 15:26:39 GMT
server: Fly/6f91d33b9d (2025-10-08)
content-type: text/html; charset=utf-8
content-encoding: gzip
via: 2 fly.io, 2 fly.io
fly-request-id: 01K79Y34H385DAHM4GJFR7Y2RF-bom
Migrating a GitHub wiki from one repository to another | Simon Willison’s TILs
Migrating a GitHub wiki from one repository to another
I figured out how to migrate a GitHub wiki (public or private) from one repository to another while preserving all history.
The trick is that GitHub wikis are just Git repositories. Which means you can clone them, edit them and push them.
This means you can migrate them between their parent repos like so. myorg/old-repo
is the repo you are moving from, and myorg/new-repo
is the destination.
git clone https://github.com/myorg/old-repo.wiki.git
cd old-repo.wiki
git remote remove origin
git remote add origin https://github.com/myorg/new-repo.wiki.git
git push --set-upstream origin master --force
This will entirely over-write the content and history of the wiki attached to the new-repo
repository with the content and history from the wiki in old-repo
.
Related
- github Clone, edit and push files that live in a Gist - 2022-09-08
- github Transferring a GitHub issue from a private to a public repository - 2021-12-22
- git How to create a tarball of a git repository using "git archive" - 2022-11-15
- git Rewriting a Git repo to remove secrets from the history - 2023-01-24
- git Rewriting a repo to contain the history of just specific files - 2022-03-22
- github GitHub Pages: The Missing Manual - 2022-10-31
- git Removing a git commit and force pushing to remove it from history - 2021-10-22
- github Bulk editing status in GitHub Projects - 2023-06-29
- github Setting up a custom subdomain for a GitHub Pages site - 2022-05-04
- homebrew Browsing your local git checkout of homebrew-core - 2020-08-27
Created 2022-07-28T13:08:10-07:00 · Edit