by Ken Task.
So as not to confuse, here's the other way ...
*** Same for backing up
*** Same example locations, etc..
cd /var/www
git clone git://git.moodle.org/moodle.git htmlgit
cd htmlgit
git branch --track MOODLE_27_STABLE origin/MOODLE_27_STABLE
git checkout MOODLE_27_STABLE
cp -rp .git ../html/ (this copies recursively the hidden .git directory into the current code directory)
cd html
ls -l .git
Now try:
git pull - this might pull down files and result in a minor upgrade
php admin/cli/upgrade.php --non-interactive
change ownerships
chown apache:apache * -R
Try the browser now.
Go to Notifications
Check on any updates to plugins. Forgot to mention that in previous response.
** NOTE: not only should one know how to do a full site backup, but one should also know how to restore that full site backup should the attempts to get code under git fail for some reason.
NOTE: should you get lost in commands, capture your history to a file:
history > commands.txt
commands.txt ... towards the bottom will have all the commands you issued in the sequence you issued them .
I usually make a little text document and keep it on my laptop that contains the commands - a commands cheat sheet so to speak. I edit for version numbers, etc. Then all I have to do is copy and paste between my cheat sheet and the terminal screen.
'spirit of sharing', Ken