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.

User:Frank Ralf/Git: Difference between revisions

From MoodleDocs
No edit summary
Line 1: Line 1:
== Setting up a remote repository on github ==
== Setting up a remote repository on GitHub ==


See the instructions at:
See the instructions at:
Line 5: Line 5:
* [[Git repositories for contrib modules]]
* [[Git repositories for contrib modules]]


== Cloning the remote github repository to your local Moodle installation ==
== Cloning the remote GitHub repository to your local Moodle installation ==


# Change to the parent folder for your plug-in
# Change to the parent folder for your plug-in
# Clone the repository: <code bash>git clone https://nakohdo@github.com/nakohdo/moodle-filter_autolinkhijacker.git</code>
# Clone the repository: <code bash>git clone https://nakohdo@GitHub.com/nakohdo/moodle-filter_autolinkhijacker.git</code>
# Rename the folder to your plug-in's name
# Rename the folder to your plug-in's name
# Open Git Bash in that folder
# Open Git Bash in that folder

Revision as of 20:19, 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

  1. Change to the correct local branch
  2. git push origin -u MOODLE_19_STABLE

Git creating remote branch.png

See also

Moodle forum discussions
External resources