====== Cloning TerraLib/TerraView Repository ======
Please, download and install Git from [[https://git-scm.com/downloads|git]], in order to have access to the TerraLib/TerraView repository.
Then, follow the steps below according to your platform.
**Note:** If you want to integrate code into the TerraLib Official Repository, please, see the document [[http://www.dpi.inpe.br/terralib5/wiki/doku.php?id=wiki:documentation:devguide:gitlab|Using GitLab]].
===== On Microsoft Windows using TortoiseGit or Git Bash =====
**1. **Make a new folder to host TerraLib source code:
$ mkdir C:/terralib/codebase
$cd terralib/codebase
**2.** Make a local copy of TerraLib repository:
$ GIT_SSL_NO_VERIFY=true git clone https://gitlab.dpi.inpe.br/terralib/terralib.git .
**Note:** You can also set local configurations for GIT in order to disable the use of SSL certificates:
$ git config http.sslVerify false
**3.** After cloning, select the right [[:wiki:documentation:devguide:branches_and_tags|branch or tag]] to work on (develop, release-5.1, release-5.2,..., release-5.x)
===== On Linux Systems =====
**1. **Open the shell command line.
**2.** Make a new folder to host TerraLib source code:
$ mkdir -p /home/user/mydevel/terralib/codebase
**3.** Change the current directory to the new folder:
$ cd /home/user/mydevel/terralib/codebase
**4.** Make a local copy of TerraLib repository:
$ GIT_SSL_NO_VERIFY=true git clone https://gitlab.dpi.inpe.br/terralib/terralib.git .
**Note:** You can also set local configurations for GIT in order to disable the use of SSL certificates:
$ git config http.sslVerify false
**5.** After cloning, select the right [[:wiki:documentation:devguide:branches_and_tags|branch or tag]] to work on (develop, release-5.y)
===== On Mac OS X =====
**1. **Open the shell command line.
**2.** Make a new folder to host TerraLib source code:
$ mkdir -p /Users/user/mydevel/terralib/codebase
**3.** Change the current directory to the new folder:
$ cd /Users/user/mydevel/terralib/codebase
**4.** Make a local copy of TerraLib repository:
$ GIT_SSL_NO_VERIFY=true git clone https://gitlab.dpi.inpe.br/terralib/terralib.git .
**Note:** You can also set local configurations for GIT in order to disable the use of SSL certificates:
$ git config http.sslVerify false
**5.** After cloning, select the right [[:wiki:documentation:devguide:branches_and_tags|branch or tag]] to work on (develop, release-5.x, 5.0.x, 5.1.x)
===== Getting the source code from compressed files =====
To get a compressed file with the source code go to the [[wiki:downloads|download page]].