Is it possible to split an ikiwiki (with git backend) in to two?
Suppose I have an ikiwiki called myiki
which contains the pages
pageA1,pageA2,...,pageB1,pageB2,...
now I want to have two wikis called myikiA and myikiB
such that
myikiA contains pageA1,pageA2,...
The history of myikiA should contain the whole history of those pages but no history of pageB1,pageB2,...
and
myikiB contains pageB1,pageB2,...
The history of myikiB should contain the whole history of those pages but no history of pageA1,pageA2,...
If just deleting the unwanted pages is insufficient (e.g. perhaps they contain information that must not be made public), you can split a git repository (including ikiwiki repositories) with
git filter-branch
(see this stackoverflow question, for instance).This preserves the history of each individual page, but rewrites the entire history of the repository (it re-does every commit, pretending that the addition of the omitted pages and every subsequent edit to them had never happened); it's like
git rebase
but more so.As a result, existing branches will no longer be able to push to the rewritten repository.