---
title: Moodle frissítés gitből
description: "### [Moodle Frissítés Gitből](https://kellej.tk/comment/1#comment-1)     [kellej](https://kellej.tk/user/1) küldte be 2022. 02. 28., h – 14:16 időpontban ``` $ cd /path/to/your/webroot $ git clone git://git.moodle.org/moodle.git (1) $ cd moodle $ git branch -a (2) $ git branch --track MOODLE_501_STABLE origin/MOODLE_501_STABLE (3) $…"
url: "https://kellej.hu/docs/moodle-frissites-gitbol/"
updated: "2026-04-16"
category: Linux
---

# Moodle frissítés gitből

### [Moodle Frissítés Gitből](https://kellej.tk/comment/1#comment-1)

  

 

[kellej](https://kellej.tk/user/1) küldte be 2022. 02. 28., h – 14:16 időpontban

```
$ cd /path/to/your/webroot
$ git clone git://git.moodle.org/moodle.git                       (1)
$ cd moodle
$ git branch -a                                                   (2)
$ git branch --track MOODLE_501_STABLE origin/MOODLE_501_STABLE     (3)
$ git checkout MOODLE_501_STABLE
```

- The command (1) initializes the new local repository as a clone of the 'upstream' (i.e. the remote server based) moodle.git repository. The upstream repository is called 'origin' by default. It creates a new directory named *moodle*, where it downloads all the files. This operation can take a while as it is actually getting the entire history of all Moodle versions
- The command (2) lists all available branches.
- Use the command (3) to create a new local branch called MOODLE_311_STABLE and set it to track the remote branch MOODLE_311_STABLE from the upstream repository.
- The command (4) actually switches to the newly created local branch.

## Updating Your Installation

$ cd /path/to/your/moodle/
 $ git pull

**File struktúra változás:**

```
DocumentRoot /var/www/clients/client1/web19/web/public
<Directory /var/www/clients/client1/web19/web/public>
AllowOverride None
Require all granted
</Directory>
```
