Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Retrieve module from the Git repository

In this example we look at how to check out the STK Module from the Git repository.

  1. Go top
  2. Search for "standard-templating-kit" with the search tool.
  3. On the results, click modules/standard-templating-kit.git. The project summary is loaded.
  4. Copy the anonymous, read-only URL
  5. Go to the command line and change to the directory where you would like to have your copy of the Standard Templating Kit project
  6. Type git clone and paste in the URL. The complete command should like like this:git clone

Note that this clones all versions of the Standard Templating Kit project to your computer, so the process could take some time.

Locating required version of module

As you have now downloaded all of the STK versions. The next step is to locate the version that you need. This requires that return to the Gitweb site.

  1. On the project summary on Gitweb site, scroll down to the "tags" section and look for the version tag you are interested in (2.0.3 in our example).
    If the tag does not show up in the short list, click on "..." at the bottom of the list to reveal the full tag list of this project.
  2. Click on the standard-templating-kit-2.0.3 tag. This will give you the details of this 2.0.3-commit
  3. Copy the commit hash. (In this case "2f6f171e8b74e861dd16d0c1240df6c393467682" in our case)
  4. Go back to the command line, change into the standard-templating-kit directory created by our git clone command above and set the clone back to the desired version using the following command:
    git reset --hard 2f6f171e8b74e861dd16d0c1240df6c393467682
  • No labels