Git pull a specific moodle version by tag

Minor moodle versions are tagged in the Moodle git repository (e.g. v2.3.3). Here’s how to pull a specific version of moodle using its tag: a

Add a git remote for the relevant branch (e.g. called moodle23):

git remote add -t MOODLE_23_STABLE moodle23 git://git.moodle.org/moodle.git

Pull the specific tag from moodle:

git pull moodle23 tags/v2.3.3