This code is a slightly updated version of the code in git/contrib/mw-to-git.
- Check out the code
$ git clone https://github.com/hexmode/mediawiki-git-remote.git
- Set up your environment
$ eval `mediawiki-git-remote/setup.sh`
- Clone a mediawiki
$ git clone mediawiki::http://git-media.wiki/w
You can use your .git/config to store various configuation items
- mwUnderNS
- Only synchronize pages in this namespace.
- mwLogin
- Your MediaWiki username
- mwPassword
- Your MediaWiki password
[remote "origin"] url = mediawiki::http://git-media.wiki/w fetch = +refs/heads/*:refs/remotes/origin/* mwUnderNS = SMW mwLogin = MyUser mwPassword = PASSWORD