<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/404/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fp2011</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/404/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fp2011"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/404/en/Special:Contributions/Fp2011"/>
	<updated>2026-05-12T21:50:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/404/en/index.php?title=Using_Book&amp;diff=98157</id>
		<title>Using Book</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/404/en/index.php?title=Using_Book&amp;diff=98157"/>
		<updated>2012-06-01T11:53:22Z</updated>

		<summary type="html">&lt;p&gt;Fp2011: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Book}}&lt;br /&gt;
== Navigate your book ==&lt;br /&gt;
&lt;br /&gt;
In addition to the links in the table of contents, you may move through the book using the arrows located to the top-left and bottom-left of the content.&lt;br /&gt;
&lt;br /&gt;
[[Image:Book10.png]]&lt;br /&gt;
&lt;br /&gt;
== Uses of the book module ==&lt;br /&gt;
&lt;br /&gt;
You can use the book module to present information in a well-structured, user-friendly format. But there are other possibilities. Because this module allows one to import individual web pages or folders of web pages, it is useful for group work. Example: Each student creates a simple web page about your school and the teacher, (that&#039;s you!) uploads the pages to the book. &#039;&#039;Voila!&#039;&#039; You and your students have created a useful, interesting resource for new students and their parents. You could do this to create a class cook book and nutrition guide, a resource about local civic organizations, &#039;&#039;triangles in our daily lives&#039;&#039;, world leaders, you name it. Alternatively, you could enable students to upload pages to the book - see [[Book FAQ]] for details.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[http://www.somerandomthoughts.com/blog/2011/05/13/review-book-module-for-moodle-2-0/ Review:Book Module] by Gavin Henrick&lt;/div&gt;</summary>
		<author><name>Fp2011</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/404/en/index.php?title=Git_for_Administrators&amp;diff=92327</id>
		<title>Git for Administrators</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/404/en/index.php?title=Git_for_Administrators&amp;diff=92327"/>
		<updated>2011-10-19T12:23:37Z</updated>

		<summary type="html">&lt;p&gt;Fp2011: /* Obtaining the code from Git */ added --track and a few details&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An alternative way to maintaining your Moodle server via [[CVS for Administrators|CVS]] is using Git. This page describes how to maintain a copy of Moodle on your production server which can easily be upgraded using Git. If you have customisations of Moodle core code, you are advised to follow the instructions in the [[Development:Quick Git start guide for Moodle development|Quick Git start guide for Moodle development]].&lt;br /&gt;
&lt;br /&gt;
== Obtaining the code from Git ==&lt;br /&gt;
&lt;br /&gt;
You can find the official Moodle git repository at git://git.moodle.org/moodle.git (with an official clone at git://github.com/moodle/moodle.git). To initialize your local checkout, use&lt;br /&gt;
&lt;br /&gt;
    git clone git://git.moodle.org/moodle.git                       (1)&lt;br /&gt;
    cd moodle&lt;br /&gt;
    git branch -a                                                   (2)&lt;br /&gt;
    git branch --track local_21_STABLE origin/MOODLE_21_STABLE      (3)&lt;br /&gt;
    git checkout local_21_STABLE                                    (4)&lt;br /&gt;
&lt;br /&gt;
* The command (1) initializes the new local repository as a clone of the upstream moodle.git repository, known as the &#039;&#039;origin&#039;&#039; remote repository by default. It creates a new directory named &#039;&#039;moodle&#039;&#039;, where it downloads all the files. This operation can take a while.&lt;br /&gt;
* The command (2) lists all available branches.&lt;br /&gt;
* Use the command (3) to create a new local branch called local_21_STABLE and set it to track the branch MOODLE_21_STABLE from the upstream repository.&lt;br /&gt;
* The command (4) actually switches to the newly created local branch. Note that the last two lines can be replaced with&lt;br /&gt;
&lt;br /&gt;
    git checkout -b --track local_21_STABLE origin/MOODLE_21_STABLE         (3 + 4)&lt;br /&gt;
&lt;br /&gt;
that creates a new local tracking branch and switches to it immediately.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;master&#039;&#039; local branch, automatically created by git-clone, can then be deleted with the command&lt;br /&gt;
&lt;br /&gt;
    git branch -d master&lt;br /&gt;
&lt;br /&gt;
== Updating your installation ==&lt;br /&gt;
&lt;br /&gt;
The Moodle development team performs integration and testing of fixed bugs every Monday and Tuesday. On Wednesday you can install all patches by updating your code. Check the [http://git.moodle.org/gw?p=moodle.git;a=summary shortlog] to see if the official repository has been already updated or not.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    git fetch                                                       (1)&lt;br /&gt;
    git status                                                      (2)&lt;br /&gt;
    git merge                                                       (3)&lt;br /&gt;
&lt;br /&gt;
The command (1) downloads new updates from the remote repository without touching your local checkout. The command (2) displays the information about the eventual drift between you local version and the upstream one. The command (3) actually modifies your local files with the updates. The git-fetch + git-merge couple can be replaced with a single command&lt;br /&gt;
&lt;br /&gt;
    git pull                                                        (1 + 3)&lt;br /&gt;
&lt;br /&gt;
== Installing a contributed extension from its Git repository ==&lt;br /&gt;
&lt;br /&gt;
For example, let us say we want to install the [[Book module]] form its Git repository into our Moodle 2.0.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    cd mod                                                          (1)&lt;br /&gt;
    git clone git://github.com/skodak/moodle-mod_book.git book      (2)&lt;br /&gt;
    cd book&lt;br /&gt;
    git checkout -b MOODLE_20_STABLE origin/MOODLE_20_STABLE        (3)&lt;br /&gt;
    git branch -d master                                            (4)&lt;br /&gt;
&lt;br /&gt;
The command (1) changes the current directory into the &#039;&#039;mod&#039;&#039; folder of your local Moodle clone. The command (2) creates a new subdirectory &#039;&#039;book&#039;&#039; and makes a local clone of Petr Škoda&#039;s vanilla Book repository. The command (3) creates a new local branch that will track the remote branch with a Book version for Moodle 2.0. The command (4) deletes the &#039;&#039;master&#039;&#039; that was created automatically by git-clone in (2) as we do not want it in this production checkout.&lt;br /&gt;
&lt;br /&gt;
Now it is wise to put the new directory mod/book/ to the list of ignored files of the main Moodle clone.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    echo /mod/book/ &amp;gt;&amp;gt; .git/info/exclude&lt;br /&gt;
&lt;br /&gt;
To update your Moodle installation now, you must visit both Git repositories and pull changes from upstream.&lt;br /&gt;
&lt;br /&gt;
    cd /path/to/your/moodle/checkout&lt;br /&gt;
    git pull&lt;br /&gt;
    cd /path/to/your/moodle/checkout/mod/book&lt;br /&gt;
    git pull&lt;br /&gt;
&lt;br /&gt;
Writing a shell script with these lines in the root of Moodle installation is a very good idea. Otherwise it is easy to forget what Git repositories are there within the main Moodle repository.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
; Moodle Docs&lt;br /&gt;
* [[CVS for Administrators]]&lt;br /&gt;
* [[Moodle versions]]&lt;br /&gt;
* For some screenshots see [[User:Frank_Ralf/Git]] (still work in progress)&lt;br /&gt;
&lt;br /&gt;
; Moodle forum discussions&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=168094 GIT help needed]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=165236 Best way to manage CONTRIB code with GIT]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167063 Handy Git tip for tracking 3rd-party modules and plugins]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=167730 Moodle Git repositories]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=183693 Git and CVS]&lt;br /&gt;
&lt;br /&gt;
; External resources &lt;br /&gt;
* [http://www.kernel.org/pub/software/scm/git/docs/everyday.html Everyday GIT With 20 Commands Or So]&lt;br /&gt;
* [http://gitref.org/ Git Reference]&lt;br /&gt;
* [http://progit.org/book/ Pro Git book]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Git]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[ja:管理者用Git]]&lt;/div&gt;</summary>
		<author><name>Fp2011</name></author>
	</entry>
</feed>