Difference between revisions 2596845 and 2678602 on mediawikiwiki

<languages />
: "Јер mediawiki верзија 1.19beta2, 1.18.2, 1.17.3, језгра mediawiki и додатака користе [[$Special:MyLanguage/Gerrit|у гит]] за контролу верзије. За старије верзије, погледајте [[$SVN|са субверзија]]"

(contracted; show full){{#tag:source|
git clone ssh://<USERNAME>@gerrit.wikimedia.org:29418/mediawiki/extensions/<EXT>.git
|lang=bash}}

You can view extension source code in [[phab:diffusion|Phabricator's diffusion]] application, and at the URL:

<pre style="white-space: pre-wrap;">
https://
gerritphabricator.wikimedia.org/r/gitweb?p=p/mediawiki/extensions/<EXT>.git;a=tree;h=refs/heads/master;hb=master;browse/master/
</pre>

=== Download all extensions ===

If you prefer to have ''all'' MediaWiki extensions that are at gerrit.wikimedia.org checked out to your machine, enter the following:

<source lang="bash">
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions.git
cd extensions
git submodule update --init --recursive
</source>

Thereafter, to update all extensions to their latest versions, just enter:

<source lang="bash">
cd /path/to/extensions
git pull
git submodule update --init --recursive
</source>

To track a specific branch:

{{#tag:source|
git submodule foreach 'git checkout -b {{MW stable release git}} origin/{{MW stable release git}} {{!}}{{!}} :'
|lang=bash}}

If you only need a read-only checkout (for instance to grep or analyse all MediaWiki code), you can use the [[wikitech:Help:Shared_storage#/shared/mediawiki/|shared MediaWiki checkout on Labs]], without downloading anything on your machines.

=== Remove an extension ===

Just remove the extension folder and remove the "<code>require_once &hellip;</code>" or "<code>wfLoadExtension( &hellip; )</code>" from <code>LocalSettings.php</code>.

== Using Git to download MediaWiki skins ==

: [https://gerrit.wikimedia.org/r/#/admin/projects/?filter=mediawiki%252Fskins%252F List of skins in git]

MediaWiki 1.24 and later don't include skins in the Git download.

Follow the exact same procedure as for extensions (described in the previous section), but using <code>skins</code> rather than <code>extensions</code> in all URLs and paths.

Detailed installation instructions are available on each skin's page here on MediaWiki.org, for example see [[Special:MyLanguage/Skin:Vector#Installation|Skin:Vector#Installation]]. Instructions for all other skins are analogous.

== See also ==

* [[Special:MyLanguage/Migrating from SVN to Git|Migrating from SVN to Git]]
* [[Special:MyLanguage/Nightlies|Nightlies]], an alternate to downloading from Git

[[Category:MediaWiki development{{#translation:}}]]
[[Category:MediaWiki Introduction{{#translation:}}]]
[[Category:Installation{{#translation:}}]]
[[Category:Git{{#translation:}}]]