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.
- Click Dashboard in your app editor.
- Click the GitHub icon at the top-right and click Connect to GitHub.
- Click Connect GitHub.
- Click Authorize Base44 Builder.
- Choose where to install the Base44 Builder:
- Select the GitHub organization or account.
- Choose which repositories to allow access.
- Click Install.
- Create a repository for your app:
- Choose the GitHub organization or account.
- Enter a name for the new repository.
- Click Create Repository.

Set up your local development environment
After connecting to GitHub, set up your local repository to start editing code in your preferred development environment. To set up your local repository:- Clone the repository using the project’s Git URL.
- Navigate to the project directory.
- Install dependencies:
npm install. - Create an
.env.localfile and set the environment variables:Example:
Sync local changes to Base44
To sync your local changes to Base44, merge the changes to the main git branch. This branch must be namedmain. Other default branch names, such as master, currently aren’t supported. The changes will then be visible on your Base44 app.
After syncing, click Publish in the top right corner of your Base44 app to
make the changes live for users.
Invite collaborators
Invite teammates to work on your app’s GitHub repository. To invite collaborators:- Open your app’s Dashboard.
- Click the GitHub icon in the top panel.
- Click the Invite Collaborator tab.
- Enter their GitHub username.
- Click Invite.

Disconnect from GitHub
You can disconnect a specific app from its GitHub repository or disconnect your GitHub account from Base44 entirely.Disconnect your repository
Disconnect your app from its GitHub repository if you no longer want to sync changes. To disconnect your repository:- Open the code tab.
- Click GitHub.
- Click the More Actions icon .
- Click Disconnect.
Disconnect your GitHub account
Disconnect your GitHub account if you no longer want to create new repository connections. This does not affect any repositories already connected to your apps and they will continue to sync normally. You can reconnect this account or connect a different GitHub account later. To disconnect your GitHub account:- Go to Account settings.
- Find the GitHub account section.
- Click the More Actions icon .
- Click Disconnect.

