> ## 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.

# GitHub Integration

> Connect your Base44 app to GitHub for version control, local development, and collaboration.

Set up GitHub integration to edit your Base44 app locally and sync changes automatically.

> [!TIP]
>
> Already have your app's code in a GitHub repository? Connecting an app you build in Base44 creates a new repository for it. To work on code that's already on GitHub, use [Base Code](https://docs.base44.com/base-code/getting-started.md) instead.

## Sync your app with GitHub

Connect your app to GitHub to write code in your local development environment or in Base44 and keep them in sync with each other.

### Before you connect

Check these requirements and limits before you connect your app:

* GitHub 2 way sync requires the [**Builder plan**](https://base44.com/pricing) or higher.
* Only app owners can connect an app to a repository or reconnect it.
* Your app needs code before you can connect it. Until the AI chat has built something, **Connect GitHub** is unavailable.
* An app syncs with one Git provider at a time. To sync with GitLab instead, see [GitLab Integration](https://docs.base44.com/developers/app-code/local-development/gitlab.md).
* If you previously connected to GitHub using the legacy Export to GitHub 1-way integration, click **Looking for the old setup?** under **Git connection** to disconnect it and reconnect using 2-way sync.
* When you connect your app to GitHub, your changes are synced to the connected repository automatically. There’s no option to manually push updates from your Base44 app to GitHub.
* After you connect GitHub to your app, you cannot use Version History to revert to versions from before the GitHub integration. Those older versions are not stored in your GitHub repository, so trying to revert to them results in an error. Only versions that exist in the connected GitHub repo are available to restore.

### Connect your app

![The More actions menu in the app editor with Git connection open, showing Connect GitHub and Connect GitLab, and the cursor on Connect GitHub.](https://mintcdn.com/base44/69MvWA9qgDr3Cvve/images/github-git-connection-connect.png?fit=max\&auto=format\&n=69MvWA9qgDr3Cvve\&q=85\&s=135e53791facca7fd4839864f025e244)

Connect to GitHub for 2-way sync

> [tab] From the app editor
>
> **To sync your app with GitHub:**
>
> 1. Go to your app editor.
>
> 2. Click the **More actions** icon  at the top right.
>
> 3. Click **Git connection**.
>
> 4. Click **Connect GitHub**.
>
> 5. Select a GitHub organization or account from the **Connection** list.
>
>    > [!NOTE]
>    >
>    > The list shows the GitHub organizations and accounts connected to your workspace. If yours isn't listed, click **Add connection** and follow the prompts to add it. By default, only workspace owners and admins can add connections.
>
> 6. Enter a name under **Name your new repository**.
>
> 7. Click **Create Repository**.

> [tab] From the Overview page
>
> If you created your app with the [Base44 CLI](https://docs.base44.com/developers/backend/overview/introduction.md), link its GitHub repository from the app's **Overview** page to start editing the app in Base44. Only the app owner sees this option, and only before the app's code is managed in Base44.
>
> > [!TIP]
> >
> > The repository needs a `base44/config.jsonc` whose project name matches the app's name, and its default branch must be `main`. Install the [Base44 GitHub App](#sync-your-app-with-github) on the repository with write access first.
>
> **To link a CLI-created app to its repository:**
>
> 1. Open your app's **Overview** page in Base44.
>
> 2. Click **Link GitHub repo**.
>
> 3. If you haven't connected a GitHub account yet, click **Connect GitHub**.
>
> 4. Search for and select the repository you created the app from with the CLI.
>
> 5. Click **Link repository**.
>
> > [!WARNING]
> >
> > The repository becomes your app's source of truth. Entities, agents, and functions you already deployed with the Base44 CLI are replaced by their versions in the repository. After linking, continue building in the app editor instead of running `base44 deploy`.

> [!TIP]
>
> After connecting, click the **Git connection** icon at the top right of your app editor, then click the icon next to the repository name to open it on GitHub. In a narrow browser window, the icon is under the **More actions** icon .

![The GitHub connection details in the app editor showing Connected status, the connection, the repository name, and the cursor on the Go to repository icon.](https://mintcdn.com/base44/69MvWA9qgDr3Cvve/images/github-git-connection-connected.png?fit=max\&auto=format\&n=69MvWA9qgDr3Cvve\&q=85\&s=f2215c0f29977cf7f2cd61e43cede944)

View your connected GitHub repository

## How your team writes to GitHub

GitHub connections belong to your workspace, not to one person's account. Workspace admins manage them in your workspace's **Git** settings, and sync keeps working if the member who connected an organization leaves the workspace.

Your workspace admin chooses how members write to GitHub. The setting applies to every app in the workspace that syncs with GitHub:

* **Shared connection:** Everyone writes through the workspace's connection, without connecting a GitHub account of their own. Commits show Base44 as the author. This is the default.
* **Per user connection:** Each member connects their own GitHub account and gets the access GitHub already gives them. Members without write access to the repository can't edit or publish the app. Commits show under the member's own name.

Base Code apps always use per user connections.

> [!NOTE]
>
> **How organizations work in your workspace:**
>
> * When you create a repository, you only see the GitHub organizations your workspace allows.
> * By default, only workspace owners and admins can add a new organization. Admins can let Editors add organizations too.
> * Connections made before GitHub moved to the workspace were moved automatically, so you don't need to reconnect.

## Set up local development

After you connect your app, you can clone its repository and work on it in your own tools. To set up your clone, sync your changes, and deploy backend features, see [Local development with Git sync](https://docs.base44.com/developers/app-code/local-development/git-sync.md).

## Disconnect from GitHub

You can disconnect a specific app from its GitHub repository, or disconnect a GitHub organization from your whole workspace. Moving an app to another workspace also disconnects its GitHub sync, and Base44 warns you before it does.

> [!NOTE]
>
> If you don't see **Disconnect repository** under **Git connection**, it isn't enabled for your account yet. Sync can't be paused, so the only states are connected and disconnected.

### Disconnect your repository

Disconnect your app from its GitHub repository if you no longer want to sync changes. Only the app owner or the member who connected the repository can disconnect it.

**To disconnect your repository:**

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 repository**.

5. Click **Disconnect** to confirm.

The disconnect process takes approximately 30 seconds and is only available when the AI agent is not actively making changes to your app.

### Reconnect your repository

Reconnect your app to the repository it was disconnected from to resume syncing. Only the app owner can reconnect.

> [!WARNING]
>
> Reconnect restores only the repository you disconnected most recently. If you create a new repository, your app can't reconnect to the original repository.

**To reconnect your repository:**

1. Go to your app editor.
2. Click the **More actions** icon  at the top right.
3. Click **Git connection**.
4. Click **Connect GitHub**.
5. In the **Reconnect Repository** dialog, click **Reconnect**.

> [!WARNING]
>
> **When you can't reconnect:**
>
> * Both your app and the repository have new commits since they last matched.
> * The repository was renamed or deleted, or its default branch changed.
> * The repository was connected from a different workspace.
> * The workspace's connection to the repository's organization was disconnected. Ask a workspace admin to reconnect it in your workspace's **Git** settings.
>
> In these cases, click **Create a new repository instead**.

### Disconnect an organization from your workspace

Disconnect a GitHub organization if you no longer want apps in your workspace to sync with it. Every app that syncs through the organization stops syncing, and the Base44 GitHub App stays installed on GitHub. Workspace owners, admins, and Editors can disconnect an organization.

**To disconnect an organization:**

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 organization under **Connections**.
5. Click **Disconnect connection**.
6. Click **Disconnect** to confirm.


## Related topics

- [Base44 Developer Platform](https://docs.base44.com/developers/home.md)
- [Connecting GitHub to your app](https://docs.base44.com/Integrations/github-connector.md)
- [Billing, plans, and subscriptions](https://docs.base44.com/Account-and-billing/Billing-and-plans.md)
- [Connectors catalog](https://docs.base44.com/Integrations/connectors-catalog.md)
- [Connecting GitHub Enterprise Cloud](https://docs.base44.com/Enterprise/github-enterprise-cloud.md)


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