Difference between revisions of "User:Frank Ralf/Git"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Frank Ralf/Git.

(Cloning the remote github repository to your local Moodle installation)
(Creating a local branch)
Line 15: Line 15:
  
 
# Open Git Bash in the plug-in folder
 
# Open Git Bash in the plug-in folder
# Create new branch: <code>git branch MOODLE_19_STABLE</code>
+
# Create new branch: <code bash>git branch MOODLE_19_STABLE</code>
# Change to the new branch: <code>git checkout MOODLE_19_STABLE</code>
+
# Change to the new branch: <code bash>git checkout MOODLE_19_STABLE</code>
#* Both steps in one: <code>git checkout -b MOODLE_19_STABLE</code>
+
#* Both steps in one: <code bash>git checkout -b MOODLE_19_STABLE</code>
  
 
== Creating a remote branch ==
 
== Creating a remote branch ==

Revision as of 20:14, 22 June 2011

Setting up a remote repository on github

See the instructions at:

Cloning the remote github repository to your local Moodle installation

  1. Change to the parent folder for your plug-in
  2. Clone the repository:
    git clone https://nakohdo@github.com/nakohdo/moodle-filter_autolinkhijacker.git
  3. Rename the folder to your plug-in's name
  4. Open Git Bash in that folder

Creating a local branch

  1. Open Git Bash in the plug-in folder
  2. Create new branch:
    git branch MOODLE_19_STABLE
  3. Change to the new branch:
    git checkout MOODLE_19_STABLE
    • Both steps in one:
      git checkout -b MOODLE_19_STABLE

Creating a remote branch

Git creating remote branch.png

See also: