ulrik@kaizer.se/ hacks/
ikiwiki with git

This website is tracked with Git.

How to migrate ikiwiki from svn to git

Axiom: I only use ikiwiki as a wiki compiler. No cgi or anything.

I imported my svn repo into git with git-svnimport. I reconfigured ikiwiki to not use any rcs. In ikiwiki.setup, I have the git repository as srcdir, and a suitable dstdir.

Then, in my git repository, I added this post-commit hook to refresh the wiki:

#!/bin/sh

# to refresh when changes happen

BASE="/path/to/base/dir"
SETUPFILE="$BASE/ikiwiki.setup"

ikiwiki --refresh --setup "$SETUPFILE" --verbose

Positives

See also git at ikiwiki.info