Git : Pulling Moodle 39 Dev

Git : Pulling Moodle 39 Dev

by Benjamin Ellis -
Number of replies: 4
Picture of Particularly helpful Moodlers

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.

Average of ratings: -
In reply to Benjamin Ellis

Re: Git : Pulling Moodle 39 Dev

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
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
In reply to Marcus Green

Re: Git : Pulling Moodle 39 Dev

by Benjamin Ellis -
Picture of Particularly helpful Moodlers
Marcus,

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



Average of ratings: Useful (2)
In reply to Benjamin Ellis

Re: Git : Pulling Moodle 39 Dev

by Tasos Koutoumanos -
Hi Benjamin ,

  1. better clone "MOODLE_39_STABLE", master will bring you a dev version
  2. 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 moodle39
Note: replace "2" with the number of commits you want to see back in time!