> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitLab Integration

> Connect your Base44 app to a GitLab project on GitLab.com for two-way sync, local development, and collaboration.

Connect your app to a project on GitLab.com so you can edit its code locally or in Base44. Every change you make in one place shows up in the other.

## Sync your app with GitLab

When you connect, you get a new private project for your app in a GitLab group or in your personal GitLab account. Base44 keeps your app's code and that project in sync.

### Before you connect

Check these requirements and limits before you connect your app:

* **Plan:** You need a [Builder plan](https://base44.com/pricing) or higher to sync your app with GitLab.
* **Role:** Only the app owner can connect an app to GitLab.
* **App code:** Your app needs code before you can connect it. Until the AI chat has built something, **Connect GitLab** is unavailable.
* **GitLab role:** To create a project in a GitLab group, you need the Maintainer role or higher in that group.
* **GitLab.com only:** You can connect projects on GitLab.com. GitLab servers that your company hosts aren't supported.
* **One provider per app:** An app syncs with either GitHub or GitLab. To move an app from GitHub to GitLab, [disconnect it from GitHub](https://docs.base44.com/developers/app-code/local-development/github.md#disconnect-your-repository) first.
* **Web only:** You connect and reconnect GitLab on the Base44 website. In the Base44 mobile app, these steps open the website.
* **Branch import:** You can't import an existing branch into an app connected to GitLab. [Importing a branch](https://docs.base44.com/Building-your-app/working-with-branches.md#importing-from-github) works only for apps connected to GitHub.

### Connect your app

![The Git connection popover in the app editor with Connect GitHub and Connect GitLab, and the cursor under Connect GitLab](https://mintcdn.com/base44/69MvWA9qgDr3Cvve/images/gitlab-editor-git-connection.png?fit=max\&auto=format\&n=69MvWA9qgDr3Cvve\&q=85\&s=f3f95ce653bc867dc765a9f95afffc78)

Connecting your app to GitLab

**To sync your app with GitLab:**

1. Go to your app editor.

2. Click the **More actions** icon  at the top right.

3. Click **Git connection**.

4. Click **Connect GitLab**.

5. Select a group or your personal account from the **Connection** list.

   > [!NOTE]
   >
   > The list shows the GitLab groups your workspace connected and your own personal GitLab account. If it's empty, click **Add connection** to [add a GitLab connection](#manage-gitlab-connections) without leaving the app editor.

6. Enter a name under **Name your new project**.

7. Click **Create project**.

> [!TIP]
>
> After you connect, click the **Git connection** icon at the top right of your app editor to open the project on GitLab or compare your app's code with it. In a narrow browser window, the icon is under the **More actions** icon .

## Set up local development

After you connect your app, you can clone its GitLab project and work on it in your own tools. Base44 syncs with the project's default branch, the same way it syncs with a GitHub repository.

> [!WARNING]
>
> To push from your local clone, you need the Developer role or higher on the GitLab project.

To set it up, follow the steps in [Local development with Git sync](https://docs.base44.com/developers/app-code/local-development/git-sync.md), using the project's Git URL from GitLab.

## Manage GitLab connections

Add a GitLab connection so you can create and sync app projects in a GitLab group or in your personal GitLab account. Connections belong to your workspace, not to one person, so sync keeps working if the member who added one leaves the workspace. You manage them in your workspace's **Git** settings, next to your GitHub connections.

> [!WARNING]
>
> Only workspace owners and admins can add GitLab connections, unless an admin lets Editors add them too.

![Git settings with the Add connection menu open, showing GitHub and GitLab, and the cursor under GitLab](https://mintcdn.com/base44/69MvWA9qgDr3Cvve/images/gitlab-settings-add-connection.png?fit=max\&auto=format\&n=69MvWA9qgDr3Cvve\&q=85\&s=97501f9de4f64a36bdf55307e93f2c3c)

Adding a GitLab connection

**To add a GitLab connection:**

1. Click your workspace name at the bottom left of your account.
2. Click **Workspace settings**.
3. Click **Git** under **Build tools**.
4. Click **Add connection**.
5. Click **GitLab**.
6. Sign in to GitLab.com and allow Base44 access.
7. Select what to connect:
   * **A group:** You see the groups where you have the Maintainer role or higher.
   * **Your personal account:** Only you see it in the **Connection** list when you connect an app.
8. Click **Connect account**.

> [!NOTE]
>
> Adding a connection doesn't change anything on GitLab.

### How your team writes to GitLab

Your workspace admin chooses how members write to your Git provider, and the setting applies to apps that sync with GitLab too:

* **Shared connection:** Everyone writes through the workspace's connection, without connecting a GitLab account of their own. This is the default.
* **Per user connection:** Each member connects their own GitLab account and gets the access GitLab already gives them. Members without at least the Developer role on the project can't edit the app.

## Fix a connection issue

If your app's **Git connection** shows **Connection issue**, Base44 has lost access to your GitLab project, for example because someone removed that access on GitLab. Your app stops syncing until you reconnect. Your changes stay safe in Base44 in the meantime.

> [!WARNING]
>
> Only workspace owners and admins can reconnect a GitLab connection, unless an admin lets Editors add connections too. If you can't reconnect it, ask a workspace owner or admin to reconnect it in **Workspace settings**, under **Git**.

**To reconnect your app:**

1. Go to your app editor.

2. Click the **Git connection** icon at the top right.

   > [!NOTE]
   >
   > In a narrow browser window, the icon moves into a menu. Click the **More actions** icon , then **Git connection**.

3. Click **Reconnect to GitLab**.

4. Sign in to GitLab.com and allow Base44 access.

You can also reconnect from your workspace settings.

**To reconnect a connection from your workspace settings:**

1. Click your workspace name at the bottom left of your account.
2. Click **Workspace settings**.
3. Click **Git** under **Build tools**.
4. Click the **More actions** icon  next to the connection.
5. Click **Reconnect**.
6. Sign in to GitLab.com and allow Base44 access.

## Disconnect from GitLab

Disconnect your app if you no longer want it to sync with GitLab. Only the app owner can disconnect it. The project stays on GitLab as it is. After you disconnect, changes you make in Base44 or on GitLab no longer show up in the other place.

**To disconnect your app:**

1. Go to your app editor.

2. Click the **Git connection** icon at the top right.

   > [!NOTE]
   >
   > In a narrow browser window, the icon moves into a menu. Click the **More actions** icon , then **Git connection**.

3. Click the **More actions** icon .

4. Click **Disconnect**.

5. Click **Disconnect** to confirm.

> [!NOTE]
>
> Moving an app to another workspace also disconnects it from GitLab. After the move, you can connect it to a new GitLab project.


## Related topics

- [GitHub Integration](https://docs.base44.com/developers/app-code/local-development/github.md)
- [Connectors catalog](https://docs.base44.com/Integrations/connectors-catalog.md)
- [Base44 developer tools](https://docs.base44.com/documentation/building-your-app/developer-tools.md)
- [Local development with Git sync](https://docs.base44.com/developers/app-code/local-development/git-sync.md)
- [Working with branches](https://docs.base44.com/Building-your-app/working-with-branches.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.