# Github/Gitlab Account Setup

dex uses Git for version control, CI/CD, and collaboration. You can choose to set up with GitHub or GitLab. We'll guide you through the **GitHub setup** since most of our customers are familiar with it.

### Create a Personal GitHub Account

{% hint style="info" %}
Skip this if you already have a GitHub account.
{% endhint %}

1. Go to [GitHub](https://github.com)
2. Click **Sign Up**
3. Verify your email

### Create an Organization <a href="#create-an-organization" id="create-an-organization"></a>

1. **Go to Your Organizations in the profile dropdown**
2. **Click New Organization**
3. **Choose a plan (Free or Team) and click Create Organization**

### Create an Empty Repository <a href="#create-an-empty-repository" id="create-an-empty-repository"></a>

1. In your new organization, go to the **Repositories** tab
2. Click **New Repository**
3. Fill in:
   1. Repository name (e.g. `dex-analytics`)
   2. Optional description
   3. Set to **Private**
4. Do **not** add a README—repo must be empty

{% hint style="info" %}
**Important:** The repository must be **brand new** and **empty** (no commits or README).
{% endhint %}

### Create a Git Access Token <a href="#create-a-git-access-token" id="create-a-git-access-token"></a>

{% embed url="<https://youtu.be/FbjdGurClBo>" %}
How to Create a Github Access Token
{% endembed %}

1. Go to **Settings** > **Developer Settings** > **Personal Access Tokens**
2. Click **Generate new token (classic)**
3. Configure the token:
   * **Name**: `dex_lakehouse_access_token`
   * **Expiration**: Optional
   * **Scopes**: Select `repo`
4. Click **Generate Token**
5. **Copy and save the token**—input this token in the dex setup

{% hint style="info" %}
If you prefer to limit access to specific repositories, use a [fine-grained personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#fine-grained-personal-access-tokens) token instead of a classic token.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dexlabs.io/lakehouse-platform/set-up-dex/github-gitlab-account-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
