Initializing a Repository in an Existing Directory
If you’re starting to track an existing project in Git, you need to go to the project’s directory and type
$ git init
Cloning an Existing Repository
$ git clone git://github.com/..../example.git
The command (1) initializes the new local repository as a clone of the 'upstream' (i.e. the remote server based) moodle.git repository. The upstream repository is called 'origin' by default. It creates a new directory named moodle, where it downloads all the files. This operation can take a while as it is actually getting the entire history of all Moodle versions- The command (2) lists all available branches.
- Use the command (3) to create a new local branch called MOODLE_23_STABLE and set it to track the remote branch MOODLE_23_STABLE from the upstream repository.
- The command (4) actually switches to the newly created local branch.
Updating your installation
The
Moodle development team performs integration and testing of fixed bugs
every Monday and Tuesday. On Wednesday you can install all patches by
updating your code. Check the shortlog to see if the official repository has been already updated or not.
To update your code to the latest version (on the MOODLE_22_STABLE branch) all you have to do is:
$ cd /path/to/your/moodle/$ git pull
Other Git
Activiti - https://github.com/Activiti/Activiti
$ git clone https://github.com/Activiti/Activiti.gitVaadin - https://github.com/vaadin
$ git clone git://github.com/vaadin/dashboard-demo.git
0 comments:
Post a Comment