Git for Administrators: Skillnad mellan sidversioner

Från MoodleDocs
Hoppa till:navigering, sök
(initial page)
 
Rad 29: Rad 29:
Moodle.com performs testing and integration of fixed bugs every tuesday, so after a tuesday you can install all patches by updating your code.
Moodle.com performs testing and integration of fixed bugs every tuesday, so after a tuesday you can install all patches by updating your code.


<code>git fetch -p</code>
<code>git pull</code>


[[Category:Git]]
[[Category:Git]]
[[Category:Administrators]]
[[Category:Administrators]]

Versionen från 14 februari 2011 kl. 15.14


An alternative way for maintaining your Moodle server via CVS_for_Administrators is using Git.

Purpose of this article

The purpose of this articla is to describe how to maintain a copy of Moodle on your production server, that is easy to upgrade using Git. If you have customisations of Moodle core code, you are advised to follow the instructions on Development:Quick_Git_start_guide_for_Moodle_development

Where are the files

You can find the official Moodle git repository on git://git.moodle.org/moodle.git and git://github.com/moodle/moodle.git

Downloading the files

git clone git://github.com/moodle/moodle.git

Moving to the correct version of Moodle

list all existing branches

git branch -a

Move to the desired branch (HEAD for Moodle 2.x)

git checkout HEAD

Now your codebase is on the correct latest version

Updating your installation

Moodle.com performs testing and integration of fixed bugs every tuesday, so after a tuesday you can install all patches by updating your code.

git pull