Difference between revisions 2787212 and 2818486 on mediawikiwiki<languages /> : "Јер mediawiki верзија 1.19beta2, 1.18.2, 1.17.3, језгра mediawiki и додатака користе [[$Special:MyLanguage/Gerrit|у гит]] за контролу верзије. За старије верзије, погледајте [[$SVN|са субверзија]]" (contracted; show full)Можете преузети језгра mediawiki преко гит, као и све додатке инсталиране на кластеру сервера Фондације Викимедија и многих других додатака, постављен на ${{ll|gerrit}}. Први корак-да клонира репозитарий језгра mediawiki. То ће потрајати неко време. У прозору терминала, унесите следећу команду: {{#tag:syntaxhighlight| git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git --branch {{MW stable branch git}} install-dirmediawiki |lang=bash}} This clones the entire MediaWiki core repository, initially pointed at release branch {{MW stable branch number}}, into a sub-directory named <code>install-dirmediawiki</code>. To install into different directory, change that in the command line (for more info [https://git-scm.com/docs/git-clone refer to these docs]). Once the repository is cloned, you can easily switch to different branches or tags (see below), including those tracking unstable versions of MediaWiki. The development branch, <code>master</code>, is the cutting-edge, developer version of MediaWiki; you '''should not use master code for production''' under any circumstances as it is not considered stable. If you want to reduce the number of revisions that are cloned, add <code>--depth=1</code> to the above command. That the release branches have a bunch of Git submodules in them, for commonly-used extensions and skins (the master branch does not have these). To update the submodules, run: {{#tag:syntaxhighlight| cd install-dirmediawiki git submodule update --init |lang=bash}} ==== Довнлоад за развој ==== <div class="mw-translate-fuzzy">⏎ Ако имате [[Special:MyLanguage/Developer accessount|Девелопер приступ]] (који је лако да затражи), уместо клонирање анонимно са https, морате да клона са својим путем SSH "<КОРИСНИК>" тако да можете да замислите промене за коментар:⏎ </div> {{#tag:syntaxhighlight| git clone ssh://<Корисничко име>@gerrit.wikimedia.org:29418/mediawiki/core.git --branch {{MW stable branch git}} install-dir |lang=bash}}mediawiki |lang=bash}} This clones the entire MediaWiki core repository, synced to the master branch, into a sub-directory named <tvar|dir><code>mediawiki</code></>. * {{git file|action=tree|project=mediawiki/core|branch=master|text=Погледајте најновији изворни код}} {{anchor|Fetch external libraries}} ⏎ ⏎ ==== Узорак спољних библиотека ==== <div class="mw-translate-fuzzy"> Ми користимо [[composer]], да би њима управљали. </div> Да бисте инсталирали ове неопходне библиотеке, имате избор: (contracted; show full)<syntaxhighlight lang="bash"> git checkout master </syntaxhighlight> === Keeping up to date === If you're using a particular branch or the development version ("master" branch) of MediaWiki, picking up the latest changes is relatively easy. Change into your MediaWiki clone directory and issue th e <code>git pull</code>is command: <syntaxhighlight lang="bash"> git pull </syntaxhighlight> All of the latest changes for the branch you are using will be applied. (contracted; show full)Download and clone an extension from Git: {{#tag:syntaxhighlight| cd /path/to/extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/<EXT>.git --branch {{MW stable branch git}} |lang=bash}} [[ Special:MyLanguage/Developer accessount|Developers]] clone with: {{#tag:syntaxhighlight| git clone ssh://<USERNAME>@gerrit.wikimedia.org:29418/mediawiki/extensions/<EXT>.git --branch {{MW stable branch git}} |lang=bash}} You can view extension source code in [https://gerrit.wikimedia.org/r/plugins/gitiles/ Gerrit's gitiles] application, and at the URL: (contracted; show full) * [[Special:MyLanguage/Migrating from SVN to Git|Migrating from SVN to Git]] * [[Special:MyLanguage/Nightlies|Nightlies]], an alternate to downloading from Git * [[Special:MyLanguage/Intranet/Intranet Installation|Intranet/Intranet Installation]], part of a fully worked series of articles that uses Git for Mediawiki deployment [[Category:MediaWiki development{{#translation:}}]] [[Category:MediaWiki Introduction{{#translation:}}]] [[Category:Installation{{#translation:}}]] [[Category:Git{{#translation:}}]] All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://mediawiki.org/w/index.php?diff=prev&oldid=2818486.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|