sabr explains how to import MediaWiki content into git, including full edit hostory. The mediawiki plugin can then be used by ikiwiki to build the wiki.