To manage Labs features:
- Go to Account settings
- Open Labs
- Toggle features on or off
Labs features can change significantly or be removed at any time.
Git branch switching (Labs)
Git branch switching lets you choose which branch Lovable edits in your connected Git repository.
By default, Lovable syncs to the project’s default branch, usually main. With branch switching, you can sync changes to a different branch or create a new one.
Prerequisites
- Your project must be connected to a Git provider (for example, GitHub or GitLab)
- You need permission to edit the project
- Git branch switching must be enabled in Account Settings → Labs
Switch or create a branch
- Open your project and go to Project settings, or click
+ in the prompt box
- Open your Git provider settings (for example, GitHub or GitLab)
- Click the branch dropdown, which shows the current branch name, then either:
- Select an existing branch, or
- Create a new branch
Type a new branch name. If no existing branch matches, a Create option appears. Click it to create the branch from your current branch. The new branch is created on your Git provider and Lovable switches to it automatically.
Lovable syncs files from the selected branch. A confirmation appears in the Git provider settings and in the project’s chat history when the switch completes.
Important notes
- If you switch branches while Lovable is processing a task, the switch waits for the task to finish (up to two minutes). The branch picker shows a loading state during this time.
- You cannot create a new branch if your current branch no longer exists on your Git provider. Switch to an existing branch first, then create a new one.
- Branch names must follow Git naming rules (no spaces,
.., leading or trailing dots or dashes, and special characters like ~ ^ : ? * [ ] \).