# Using a Git repository

> Development in **UiPath Process Mining** is done collaboratively. To facilitate this, and to keep track of changes, Git is used. A Git server can be used by multiple installations of **UiPath Process Mining**.

## Introduction

Development in **UiPath Process Mining** is done collaboratively. To facilitate this, and to keep track of changes, Git is used. A Git server can be used by multiple installations of **UiPath Process Mining**.

There are two methods in which you can incorporate Git:

* A local Git repository, managed by **UiPath Process Mining**.
* A Git repository you manage yourself. This can either be your own Git server, or even a GitHub repository.
  :::note
  Whichever Git repository you choose to use, you should make sure to only make changes through **UiPath Process Mining**. Performing Git operations manually (e.g. through the Git command-line tools) may interfere with the proper operation of UiPath Process Mining.
  :::

### Local repository

Follow these steps to use a local repository within the **UiPath Process Mining** installation.

| Step | Action |
| --- | --- |
| 1 | Login on the **Superadmin** page. |
| 2 | Go to the **Settings** tab. |
| 3 | In the **Repositories** text field, use the following value:  ``` [{ "url": "mvlocal:upstream.git}] ``` |
| 4 | Press **CTRL+S** to save the changes and reload the page to apply them. |

### Username and password

Follow these steps to use a Github account using a username and password.

| Step | Action |
| --- | --- |
| 1 | Go to the **Settings** tab. |
| 2 | In the **Repositories** text field, use the following value:  ``` [{"url": "https://github.com/username/repo.git", "user": "username", "pass": "password}] ``` |
| 3 | Press **CTRL+S** to save the changes and reload the page to apply them. |

#### Hide password

In case you do not want passwords clearly visible in the settings, you can also use a public and private key pair. You will need access to the filesystem of the server.

Follow these steps to use a public and private key pair.

| Step | Action |
| --- | --- |
| 1 | Obtain public and private keys for the Github repository you want to use. |
| 2 | Place them in the databases directory in PLATFORMDIR. It is recommended to place them in a subdirectory, for example, respectively for the private and public keys:  • `<PLATFORMDIR>\databases\keys\keyfile.txt`  • `<PLATFORMDIR>\databases\keys\keyfile.pub.txt` |
| 3 | Go to the **Settings** tab. |
| 4 | In the **Repositories** text field, use the following value:  ``` [{"url": "git@github.com:username/repo.git", "privkey_file": "keys/keyfile.txt", "pubkey_file":   "keys/keyfile.pub.txt}] ``` |
| 5 | Press `CTRL+S` to save the changes and reload the page to apply them. |

A Git server is connected to **UiPath Process Mining**. Your developers can start committing and collaborating.
