My git skills are adequate for general tasks but my knowledge is somewhat limited. I want to clone then pull the Moodle 3.9 development repo to my device - http://git.moodle.org/gw?p=moodle.git;a=tree;hb=refs/heads/master - anyone help me work out how to do this please? The weekly zip download and install is time consuming.
I think that if you do a git clone http://github.com/moodle mymoodle what comes back in folder mymoodle will be on the default branch of master which at the moment will be 3.9 dev
Marcus,
Thanks - with your prompt I did :
Thanks - with your prompt I did :
git clone git://git.moodle.org/moodle.git -b master --single-branch moodle39
then to ensure I do not attempt to push anything back to the repo I did:
git remote set-url --push origin no_push
Hi Benjamin ,
- better clone "MOODLE_39_STABLE", master will bring you a dev version
- you can further "trim" the amount of git history you'll receive with:
$ git clone --depth 2 git://git.moodle.org/moodle.git -b MOODLE_39_STABLE --single-branch moodle39Note: replace "2" with the number of commits you want to see back in time!
Since Moodle 3.9 is now stable, too late for an answer. I think the solution prior to 15 June would have been https://moodle.org/mod/forum/discuss.php?d=403280#p1627774 with further explanations in https://moodle.org/mod/forum/discuss.php?d=403280#p1628105.