---
title: GitHub and GitLab
seo:
  title: "Connect GitHub and GitLab repositories"
description: Connect GitHub or GitLab so that Conic can read your repositories and deploy each push.
---

Conic deploys from repositories on GitHub and GitLab. You connect your Git account when you import your first project.

## GitHub

Conic uses the Conic GitHub App.

<Illustration name="git-import" app="/new" appLabel="New Project" />

1. **Start the import**

    Click <AppLink to="/new">New Project</AppLink>, then choose **GitHub**.

2. **Install the app**

    GitHub opens. Select the GitHub account or the organization that owns your
    repositories. Then select all repositories, or only some of them.

3. **Select a repository**

    GitHub sends you back to Conic. Conic shows the repositories that the app
    can read. Select one to import.

The app also connects your own GitHub account to Conic. Conic uses it to know which commits are from members of your workspace. See [Commit approvals](/deployments/commit-approvals).

To give Conic access to more repositories, install the app on a different account, or change its repositories on GitHub. Conic sees the change.

## GitLab

1. **Start the import**

    Click <AppLink to="/new">New Project</AppLink>, then choose **GitLab**.

2. **Give access**

    Sign in to GitLab and accept the access that Conic asks for.

3. **Select a project**

    Conic shows your GitLab projects. Select one to import.

GitLab has no app that sends the events of all projects. So Conic adds a webhook to each GitLab project that it deploys. Conic removes this webhook when you delete the last Conic project that uses it.

## Reconnect

If your connection expires, Conic shows **Reconnect GitHub** or **Reconnect GitLab** on <AppLink to="/new">New Project</AppLink>. Click it and sign in again. Your projects keep their repository.

## Switch the Git provider

On <AppLink to="/new">New Project</AppLink>, click **Switch Git Provider** to import from the other provider.
