Git Primer

Pulling a repository to your local machine

To download a repository to your local machine, you can either you GIT commands directly or use a GUI (like SourceTree) to manage your repository.

1) Go to a repository in the Certiport GIT Repository.

2) Under the "Details" section, the URL to the repository will be displayed. Be sure to use the "General URL" listed.

Create new repository page

Using the terminal

If you want to clone from the terminal, navigate to the directory where you want to clone the repo, then use git clone <GIT_URL>, like so:

git clone http://certiportdev.com:5200/my-project.git

Using SourceTree

SourceTree is a free Git & Mercurial client for Windows or Mac. Its pretty powerful and will do everything you need. If you are not using a JetBrains application like WebStorm, this may be the best alternative.

1) To download a repository using SourceTree, click on "+ New Repository", then "Clone from URL".

SourceTree New Repository

2) All fields are required:

  • Source URL: GIT URL (Use General URL)
  • Destination Path: Location to download repo to<./li>
  • Name: Used by SourceTree as a bookmark to repo.
SourceTree clone a repository

3) To download a repository using SourceTree, click on "+ New Repository", then "Clone from URL".

SourceTree repository list