This code is a slightly updated version of the code in [https://github.com/git/git/tree/master/contrib/mw-to-git 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
Example:
[remote "origin"]
url = mediawiki::http://git-media.wiki/w
fetch = +refs/heads/*:refs/remotes/origin/*
mwUnderNS = SMW
mwLogin = MyUser
mwPassword = PASSWORD