Set Up GitHub Integration

Alpha: Building apps with AI is currently in alpha. This feature is subject to change and may have bugs, issues, and limitations. We're actively improving it based on your feedback.

Connect to GitHub

Set up GitHub integration to connect an app project to a dedicated repository created in your GitHub account. This enables version control, collaboration, and the ability to edit the app in any external IDE.

To set up GitHub integration:

  1. Click connect to GitHub icon to open the GitHub integration menu.
  2. In the menu, click Connect to GitHub. A new window opens.
  3. Log in to GitHub, if needed.
  4. Select your GitHub account or organization, and then click Install & Authorize. After installation, the window closes.
  5. The GitHub integration menu now shows your connected account and a repository name. You can type in a different name for the repository. After you choose a name, click Create Repository.
  6. To create a local clone of the repository, click Clone to your computer in the menu.

Note: GitHub integration only supports creating new repositories. You can't reconnect to an existing repository.

Disconnect from GitHub

If you need to, you can disconnect an app from GitHub. When you do this, your app retains the code from the most recent commit to its GitHub repository's default branch. After disconnecting, the repository still exists in GitHub, but changes to it aren't reflected on the app.

To disconnect an app from GitHub:

  1. Click ⋯ More Actions in the GitHub integration menu, and then click Disconnect from GitHub. A confirmation window opens.
  2. In the confirmation window, click Disconnect from GitHub.

Important: Once you disconnect an app from its GitHub repository, you can't reconnect the app to that repository again. If you reconnect the app to GitHub later, a new repository is created.

See also

Did this help?