Skip to content

Allow git to treat MediaWiki installations as a git remote.

License

Notifications You must be signed in to change notification settings

hexmode/mediawiki-git-remote

Repository files navigation

A git remote for MediaWiki

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].

usage

  • 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

configuration ==

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

About

Allow git to treat MediaWiki installations as a git remote.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages