Difference between revisions 2421725 and 2423790 on mediawikiwiki

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

(contracted; show full)

Почевши са mediawiki 1.25, неким страним библиотекама да mediawiki захтева више у то "језгро" гит гит.
Ми користимо [[composer]], да их управљају.
Да бисте инсталирали ове библиотеке је потребно, имате избор:

* [https://getcomposer.org/doc/00-intro.md#globally преузмите и инсталирајте композитор], пребаците на ваш главни директоријум и покрените <kbd>'''composer install --no-dev'''</kbd>. Note that if you have an existing <
ttcode>composer.lock</ttcode> file you will need to run <kbd> '''composer update --no-dev'''</kbd> instead.

* If you  don't want to use composer, or if you want to use the same set of vendor libraries as used on the WMF production cluster, you can instead <kbd>git clone https://gerrit.wikimedia.org/r/p/mediawiki/vendor.git</kbd> to create a <ttcode>vendor/</ttcode> directory inside the core folder of your MediaWiki installation. Make sure you use the right branch for your MediaWiki version (e.g. <ttcode>REL1_25</ttcode> for 1.25).

==== Specific MediaWiki versions====

===== WMF branches =====

Remote branches track the MediaWiki versions used on the Wikimedia Foundation server cluster. These may not be entirely stable, but they receive very quick bug fixes and are generally stable enough &ndash; after all, these are what major projects such as Wikipedia are using. Once a REL* branch is considered 'stable', we '[[#MediaWiki_tags_.28stable_version.29|tag]]' it and turn it into a tarball release.(contracted; show full)git pull
</source>

All of the latest changes for the branch you are using will be applied.

The new version of core may require newer versions of extensions and skins, so you must go into each extension and skin directory and update it with a command like <kbd>git pull --recurse-submodules</kbd>.

After updating/upgrading you should run the MediaWiki <
ttcode>{{ll|Manual:update.php|update.php}}</ttcode> command-line script to update database tables as needed:

<source lang=bash>
php maintenance/update.php
</source>

You also need to update <ttcode>mediawiki/vendor</ttcode> to any newer versions of required libraries, see [[#Fetch external libraries]].

If you use [[MediaWiki-Vagrant]], it offers a single command, <kbd>vagrant git-update</kbd>, that performs all these steps.

=== Switching to a different version ===

(contracted; show full)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}}]]