> ## Documentation Index
> Fetch the complete documentation index at: https://converge-enter-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sync code with GitHub

A GitHub repository is a folder that stores your project's code. A branch is one line of work inside that repository, and a commit is a saved set of changes on the branch. GitHub sync keeps the connected branch in step with your Enter project so you can work on the same code in Enter and in outside developer tools.

```mermaid theme={null}
flowchart LR
  A["Enter project"] -->|"Enter sends code"| B["GitHub branch"]
  B -->|"New commits come back"| A
  C["Your local tools"] -->|"Commit and push"| B
```

## Before you start

You need:

* A [paid plan](https://converge.ai/pricing?product=enter).
* A GitHub account with access to the repository or organization.
* A [workspace Owner or Admin](https://converge-enter-documentation.mintlify.site/en/articles/invite-members-and-manage-roles.md) to add the GitHub authorization. GitHub may ask an organization to approve it.

## Connect a repository

### Step 1 · Open GitHub settings

Open the project title menu, click **Settings**, and choose **GitHub**.

![Enter project GitHub settings showing the Project Repository section](https://mintcdn.com/converge-enter-documentation/M67gKYEaJiF8mf9Q/images/enter-help/4.4/github-settings.png?fit=max\&auto=format\&n=M67gKYEaJiF8mf9Q\&q=85\&s=858b0f157f8f255720d9bf3c7cadfe1f)

Project Repository appears at the top when you open GitHub settings from the project title menu.

### Step 2 · Choose the account

Under **Project Repository**, click **Connect**. Pick an **Organization / Account**. If yours is missing, add it and finish the GitHub authorization.

### Step 3 · Choose the repository and branch

Choose **New Repo**, or **Existing Repo** with a new branch. Select or name the repository, type an unused, valid branch name, and click **Connect**.

![GitHub connection form with account, repository, and branch fields](https://mintcdn.com/converge-enter-documentation/M67gKYEaJiF8mf9Q/images/enter-help/4.4/connect-repo.png?fit=max\&auto=format\&n=M67gKYEaJiF8mf9Q\&q=85\&s=6d4385294bb210f51a8ab60723e94443)

Account, repository, and new branch name.

> [!WARNING]
>
> Before you confirm, check the account, repository, branch name, and whether the repository is public or private. Remove passwords and keys from the code before you make a repository public.

## How sync works

Sync goes both ways:

* Enter sends your project's code to the connected branch.
* Commits on that branch can come back into Enter. Commit and push edits from your own computer to GitHub first.

| Item | Synced? |
| - | - |
| **Project code** | Yes, both ways |
| [**Downloaded ZIP**](https://converge-enter-documentation.mintlify.site/en/articles/download-and-export-your-code.md) | No. It is only a snapshot, not a live link |
| **Database records** | No |
| **Hosted-service settings** | No |

## Check that a change arrived

Check the sync status.

| Status | What it means |
| - | - |
| **Syncing** | Sync is running. |
| **Synced** | Sync is finished. |
| **Push Failed** / **Pull Failed** | Code could not be sent to, or fetched from, GitHub. Read the message shown. |
| **Merging** | Enter is combining changes from GitHub and the project. If the changes conflict, Enter keeps both versions while it merges; review the result before you continue. |

1. Find the expected commit on the connected GitHub branch.
2. Check the change in the Enter [**Preview**](https://converge-enter-documentation.mintlify.site/en/articles/visual-editing.md).
3. If a change is missing, compare the branch names, then read any **Push Failed** or **Pull Failed** message.
4. After a merge, review the result before you keep working in both places.

> [!TIP]
>
> **Sync is not publishing.** Sync updates code; publishing updates your live app. When the preview works, [publish or update the site](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md), then open the live address to check it.

## Limitations

* Enter always starts a new branch. It does not continue on an existing branch.
* Project code sync is separate from the **GitHub** [connector in the app catalog](https://converge-enter-documentation.mintlify.site/en/articles/set-up-and-manage-connectors.md). Setting up one does not set up the other.

## Troubleshooting

> [accordion] My account is not listed under Organization / Account
>
> Add it and finish the GitHub authorization. See Step 2.

> [accordion] My edits from my own computer do not show in Enter
>
> Commit and push them to GitHub first. Enter can only receive commits that are on the connected branch.

> [accordion] The status says Merging
>
> Review the result before you keep working in both places.

## Common questions

> [accordion] Can Enter connect to an existing GitHub branch?
>
> No. You can choose a new repository or an existing repository, but Enter always creates a new branch and does not continue on an existing branch.

> [accordion] What does GitHub sync include?
>
> GitHub sync moves project code both ways on the connected branch. It does not sync database records, hosted-service settings, or a [downloaded ZIP](https://converge-enter-documentation.mintlify.site/en/articles/download-and-export-your-code.md).

> [accordion] How are changes from GitHub merged into Enter?
>
> Commit and push outside edits to the connected branch first. Enter can then bring those commits into the project; if changes conflict, it keeps both versions while merging, so review the result before you continue in both places.

> [accordion] Does syncing code publish my app?
>
> No. Sync updates code, while [publishing](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md) updates the live app.

## Keep going

> [!NOTE]
>
> **Next: [Publish your site](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md)**\
> Sync updates the code. Publish to update your live app.

> [card] [Set up and manage connectors](https://converge-enter-documentation.mintlify.site/en/articles/set-up-and-manage-connectors.md)
>
> The app-catalog GitHub connector is a different feature.

> [card] [Download and export your code](https://converge-enter-documentation.mintlify.site/en/articles/download-and-export-your-code.md)
>
> Take a one-time copy of your code.

> [card] [Fork a project](https://converge-enter-documentation.mintlify.site/en/articles/fork-a-project.md)
>
> Start a new project from your code.


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