HOWTO: Upgrade Moodle from CLI using git

HOWTO: Upgrade Moodle from CLI using git joan

Once at your Moodle base folder, just:

  1. /usr/bin/php admin/cli/maintenance.php --enable

  2. git pull

  3. /usr/bin/php admin/cli/maintenance.php --disable

  4. Log in to the site, as administrator, and follow the web steps to update database, etc.