Added a comment
[ikiwiki.git] / doc / forum / Split_a_wiki / comment_2_1c54d3594f0350340f8dfb3e95c29ffd._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="comment 2"
5  date="2011-12-04T13:37:27Z"
6  content="""
7 If just deleting the unwanted pages is insufficient (e.g. perhaps they
8 contain information that must not be made public), you can split a git
9 repository (including ikiwiki repositories) with `git filter-branch` (see
10 [this stackoverflow question](http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository),
11 for instance).
12
13 This preserves the history of each individual page, but rewrites the
14 entire history of the repository (it re-does every commit, pretending
15 that the addition of the omitted pages and every subsequent edit to
16 them had never happened); it's like `git rebase` but more so.
17
18 As a result, existing branches will no longer be able to push to the
19 rewritten repository.
20 """]]