
- Best way to install git for mac mod#
- Best way to install git for mac update#
- Best way to install git for mac upgrade#
- Best way to install git for mac code#
Writing a shell script with these lines in the root of Moodle installation is a very good idea.
Best way to install git for mac update#
To update your Moodle installation now, you must visit both Git repositories and pull changes from upstream.
Best way to install git for mac code#
Now it is wise to put the new directory mod/certificate/ to the list of ignored files of the main Moodle clone, otherwise a status of the main clone will keep reminding you that the new code has not been checked in. § git checkout -b MOODLE_29_STABLE origin/MOODLE_29_STABLEįatal: git checkout: updating paths is incompatible with switching branches.ĭid you intend to checkout 'origin/MOODLE_29_STABLE' which can not be resolved as commit? This will avoid an error message when you issue the command (3) against a nonexistent branch, e.g.: Note: you should check first the compatibility of a module with your Moodle branch by asking directly to the Maintainer before cloning the repo or - if you want to guess it - by issuing the command below before running the command (3), in order to verify what is available among the branches:

The command (4) deletes the master that was created automatically by git-clone in (2) as we do not want it in this production checkout. The command (3) creates a new local branch that will track the remote branch with a Certificate version for Moodle 2.9. The command (2) creates a new subdirectory certificate and makes a local clone of vanilla Certificate repository.
Best way to install git for mac mod#
The command (1) changes the current directory into the mod folder of your local Moodle clone. $ git checkout -b MOODLE_29_STABLE origin/MOODLE_29_STABLE (3) However, at the time of writing, this is one of Git's rougher features and should be regarded as an advanced option.įor example, let us say we want to install the Certificate module from its Git repository into our Moodle 2.9. This is one way to handle adding plugins from other Git repositories into your Moodle repository. Installing a contributed extension from its Git repository
Best way to install git for mac upgrade#
If this is a production site you should still consider the Upgrade instructions (e.g. To update your code to the latest version (on the MOODLE_29_STABLE branch) all you have to do is: Check the shortlog to see if the official repository has been already updated or not. On Wednesday you can install all patches by updating your code. The Moodle development team performs integration and testing of fixed bugs every Monday and Tuesday. It's a bit slower, so use the Git protocol if you can. If this is a problem, you can use Github's http version. Git uses a read-only protocol that may be blocked by your firewall (port 9418). 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!!).


Graphical clients are little more than wrappers around the command line version, so you should be able to deduce the correct parameters quite easily. The command line version of Git is discussed here. Once you have downloaded and installed your OS relevant git installation, the git commands in this document should work with your operating system. Support for Git was, up until recently, mostly confined to Linux but builds are now available for most popular operating systems: Getting hold of Git (Windows, OSX, Linux and others) 5 Installing a contributed extension from its Git repository.1 Getting hold of Git (Windows, OSX, Linux and others).
