Migrating from SVN to Git/de

So, you've got a SVN checkout of a development or a production Wiki, and you want to change it to a Git one...

Core (nee "phase3")
This is based on your wiki being at, with the wiki files in the w directory.


 * 1) Make a backup of your files (doing your database aswell wouldn't be a bad thing)!  If you want to keep any changes you've made to mediawiki code, save the results of svn diff.
 * 2) Strip out all the old .svn folders (though, we possibly don't want to delete the ones from the extensions. Hmmm)
 * 3) Do a Git clone into a new folder
 * Anonymous: git clone https://gerrit.wikimedia.org/r/mediawiki/core.git git
 * Wikimedia developer account: git clone ssh://@gerrit.wikimedia.org:29418/mediawiki/core.git git
 * 1) Change this Git clone to the wanted version
 * To make your Git clone use a branch:
 * git checkout origin/REL1_18
 * To make your Git clone use a tag:
 * git checkout 1.18.2
 * 1) Copy this git clone over your SVN files
 * 2) Party!
 * 1) Copy this git clone over your SVN files
 * 2) Party!
 * 1) Party!

Future updates
So, you need to do some updates, due to security updates, new releases or whatever. See

Migrating extensions
Some extensions have been moved to Git, some are still in Subversion. In the future this won't be the case, but now it is. Any extensions that are deployed on the Wikimedia Cluster have been migrated, along with some others at the authors request.

A similar process to what was done to migrate core (phase3) can be used for extensions.

Siehe auch

 * Stackoverflow: How to migrate a Mediawiki installation from Subversion (SVN) to Git