moodle git hub
possible to use any other of the public mirrors:
Bitbucket: https://bitbucket.org/moodle/moodle
HQ: git://git.moodle.org/moodle.git
git clone git://git.moodle.org/moodle.git [nameofdir]
git clone –depth=1 -b MOODLE_2#_STABLE –single-branch git://git.moodle.org/moodle.git [nameofdir]
can’t update/move to higher version with above.
git clone -b MOODLE_29_STABLE git://git.moodle.org/moodle.git [directory]
git clone depth 1 -b MOODLE_31_STABLE git://git.moodle.org/moodle.git [directory]
Above would be good for the series … which is long term support version.
The above works.
cd [nameofdir]
git branch -a
If you did the second command above, nothing more need be done … the branch/code already set to the 2# you gave in the command
If you did the first command above, then one has to do the following.
git branch –track MOODLE_3#_STABLE origin/MOODLE_3#_STABLE
git checkout MOODLE_3#_STABLE
or
git checkout -b MOODLE_30_STABLE origin/MOODLE_30_STABLE
** IF a side load of git won’t set to the branch desired.
in the html directory, re-issue the branch and check out commands:
git branch –track MOODLE_30_STABLE origin/MOODLE_30_STABLE
git checkout MOODLE_30_STABLE
Then issue:
git reset –hard
Check the branch
git branch -a
The * should now be on the one desired.