Updating paths is incompatible with switching branchesforcing
For example, let us say we want to install the Certificate module from its Git repository into our Moodle 3.3.$ cd /path/to/your/moodle/ $ cd mod (1) $ git clone https://github.com/markn86/moodle-mod_certificate (2) $ cd certificate $ git checkout -b MOODLE_33_STABLE origin/MOODLE_33_STABLE (3) $ git branch -d master (4) The command (1) changes the current directory into the mod folder of your local Moodle clone.If this is a problem, you can use Github's http version https://github.com/moodle/It's a bit slower, so use the Git protocol if you can.Check the shortlog to see if the official repository has been already updated or not.
To initialize your local checkout, use $ cd /path/to/your/webroot $ git clone git://git.moodle.org/(1) $ cd moodle $ git branch -a (2) $ git branch --track MOODLE_33_STABLE origin/MOODLE_33_STABLE (3) $ git checkout MOODLE_33_STABLE (4) Note that Git has a huge number of options for each command and it's actually possible to do the above process with a single command (left as an exercise!! Git uses a read-only protocol that may be blocked by your firewall (port 9418).If you have customisations of Moodle core code, you are advised to follow the instructions in the Git for developers guide.To get the most of Git it is worth making the effort to understand its basic concepts - see the section below.nvmw install v0.6.9 Start installing Node v0.6.9 Download from and save it as C: \nvmw\v0.6.9\Done Start install npm Cloning into npm... remote: Compressing objects: 100% (4929/4929), done. remote: Total 17949 (delta 13260), reused 17530 (delta 12896) Receiving objects: 100% (17949/17949), 5.32 Mi B | 1.56 Mi B/s, done. fatal: git checkout: updating paths is incompatible with switching branches. Error: UNKNOWN, unknown error 'C:\nvmw\v0.6.9\npm' npm ERR! Did you intend to checkout 'origin/tar-js' which can not be resolved as commit?
Would you like to answer one of these unanswered questions instead?