Get a Lovable project into your own GitHub
Lovable syncs a project with a GitHub repository. Connect your GitHub account in the project's Git settings, link the project, and Lovable pushes the code to a repository you own. Then you can open that repository in Xodia, or anywhere else.
By Zuzo Studio, the team behind Xodia
Published · Updated
Free plan. No card needed.
The New project dialog on Import from GitHub: the GitHub account and search, then the repositories the GitHub App may open, each with Import, one already imported with Open.
Step by step
How to put a Lovable project on GitHub
It takes a few minutes. You need a GitHub account, and to be an owner or admin of the Lovable workspace and project.
- 1
Open the project's Git settings in Lovable
In your Lovable project, open Project settings, then Git, then GitHub.
- 2
Connect your GitHub account or organization
Add a GitHub connection for the workspace. GitHub asks you to install Lovable's GitHub app on your personal account or on an organization you choose. Pick the one you want the code to live in.
- 3
Link the project to a repository
Connect the project. Lovable creates a repository under that account and pushes the code. From then on, changes in Lovable reach GitHub, and changes pushed to the synced branch come back into Lovable.
- 4
Check the repository on GitHub
Open the repository and check the code is there: package.json at the root, a src folder, and the branch Lovable syncs, usually main.
- 5
Open it in Xodia
In Xodia, press New project and choose Import from GitHub. Install the Xodia GitHub App on the new repository when asked, then pick it. Xodia checks the code before it creates the project. Pushing to your own GitHub comes with Starter and up; on Free, your edits stay saved in Xodia as drafts until you upgrade.
Open it in Xodia
The repository, opened as it is
Xodia reads the code before it creates the project, names the file and line of anything it can't run, and adds no package or config file of its own to a React and Vite project.
- Projects on React and Vite open with full visual editing
- Most Tailwind 3 projects are upgraded to Tailwind 4 on the way in, in one change you can undo
- Newer Lovable apps on TanStack Start come in too, converted once to run in the browser in one change you can undo
- One that runs code on a server comes in as well: Xodia asks first, then switches off the parts that need a server and lists each one. Move a Lovable app with a backend
Xodia's New project dialog asking how you want to start: Start a new site from a template or a starter, Describe your site for a template Xodia AI makes yours, Import from GitHub, Upload a ZIP from Lovable, Bolt or another builder, Import from Lovable, Bolt or Replit for the steps per builder, or Import a website by its address, with Import from GitHub outlined, and the optional Connect your AI line.
Questions
Questions about Lovable and GitHub
Which Lovable plan do I need to sync with GitHub?
Check your plan on Lovable's own subscription plans page before you start. Editing code inside Lovable and downloading it as a ZIP start on its paid plans.
Who owns the repository?
You do. It lives in the GitHub account or organization you connect, and stays there if you disconnect the project from Lovable later.
Which branch does Lovable use?
One branch at a time, usually the repository's default branch, main. Changes pushed to that branch sync back into Lovable; other branches stay out of it until you merge them.
Can Lovable and Xodia work on the same repository?
Yes. Make your visual edits in a new version in Xodia and open a pull request, or push to the synced branch directly. Pushing from Xodia to GitHub comes with Starter and up. See Edit a Lovable site without using credits.
Keep exploring
Related guides and pages
- Edit an AI-built app by hand, without creditsSync it to GitHub, edit by hand, push it back
- Edit an AI-built site exported to GitHubImport the repo an AI tool made and keep editing
- A visual editor for your React and Tailwind siteStyle each screen size, classes written to your repo
- Bring your Lovable or Bolt siteWhat comes over, and what to check
- Xodia vs LovableRow by row, with sources
- GitHubImport, sync, branches and pull requests
Primary sources
Official docs
Updated