Using https://github.com/moy/Git-Mediawiki/wiki/User-manual which is part of the contrib in git itself, provides a "remote" that talks to a Mediawiki instance API and uses git to store text version of the wiki files. This is a good way to backup and also to edit your wiki through a set of text files rather than the web interface. It needs namespace support https://github.com/moy/Git-Mediawiki/issues/10
[[Category:Git]]
[[Category:Wiki]]