Your bolt new github connection looked finished — then the repo missed your newest change, a branch behaved strangely, or the published app still had no production settings.
Two different problems wear the same label. Sometimes GitHub sync is stuck. Sometimes sync is fine, but you expected it to move secrets, database rows, hosting configuration, branch merges, or deploy permissions.
Bolt’s GitHub integration is real two-way version control, not a production migration button. Separate those layers and the fix becomes short.
What bolt new github trouble looks like
The visible symptoms usually fall into one of these patterns:
- The repository exists but the latest Bolt edit is missing. The GitHub status panel says retry, failed, or the change came from a collaborator whose work has not reached the owner-side sync yet.
- GitHub has a newer version than Bolt. Bolt shows a conflict and asks whether to pull and resend your last message or pull and discard it.
- A branch exists in Bolt but nothing is merged. Bolt can create and switch branches. It cannot merge them.
- The repo is green, the app is not live. GitHub holds code, not your hosting env vars, Bolt Cloud data, user accounts, or publish settings.
- The import button refuses a repository. The repo is empty, has no default branch, or you do not have push permission.
- Reconnecting fails because the same GitHub account is tied to multiple Bolt accounts. This is an authentication conflict, not a code conflict.
The repo-to-hosting boundary is the same one covered in lovable github and vercel env vars; the wider production checklist is the lovable deploy hub.
Why bolt new github sync breaks or looks broken
Bolt commits whenever a change does not break the project. It also checks GitHub about every 30 seconds for outside changes and pulls them in. That simple design has edges.
The first edge is permission. You authorize StackBlitz, install the Bolt GitHub app, and choose all or selected repositories. If the target repo is outside that selection, sync cannot work. The fix is repository access, not another prompt.
The second edge is ownership timing. Your own edits sync when you make them. Collaborator edits sync when the project owner next opens the project, so GitHub can look old even after a teammate is finished.
The third edge is conflict handling. If someone pushes to GitHub while you edit in Bolt, Bolt may be unable to push. It pulls the newer GitHub version and asks you to resend or discard your last message. There is no magical three-way merge inside the chat.
The fourth edge is scope. Bolt secrets are deliberately not written into project files, browser code, or the published site. Database rows are separate operational data. GitHub can preserve code history, but it is not a complete application backup.
First prove which layer is failing
Before reconnecting anything, answer four questions in order.
1. Is the repository linked?
Open the project and click the GitHub icon. The status panel should show the linked repository and active branch with a checkmark. If there is no repository, create one or import an existing repository.
2. Is the status actually green?
Synced to GitHub means Bolt sent the changes. Syncing to GitHub means wait. Retry sync means the push failed, often because GitHub was slow, unavailable, or rate-limiting requests. A visible Couldn't sync with GitHub message means the work is still saved in Bolt, but the repo is not current.
3. Are you looking at the same branch?
Bolt starts on main unless you create or switch branches. The checkmark in the GitHub panel is the branch Bolt syncs to. GitHub may be showing main while Bolt is committing to a feature branch, or the reverse.
4. Are you expecting data instead of code?
If the missing thing is a secret value, a database row, a user account, uploaded file storage, or a host environment variable, GitHub sync is the wrong tool. That is a production operations problem.
bolt new github: the exact repair click path
- Open the Bolt project and click the GitHub icon. Read the status before editing anything else.
- Confirm the repository and checked branch. Open the repository on GitHub from the same panel and compare the branch name and latest commit time.
- Wait out Syncing to GitHub. Do not prompt the agent while the status is moving; parallel edits make conflicts harder to read.
- Click Retry sync once if offered. If it succeeds, stop. Do not repair a transient GitHub failure with a full reconnect.
- Check repository access. Use Configure the GitHub App and confirm Bolt can access either all repositories or the specific repository you expect.
- Reauthorize when sync still does not move. From the Bolt homepage choose GitHub below the chatbox, open Configure the GitHub App, select the account, and complete Install & Authorize again.
- Handle a conflict deliberately. Choose pull and resend only if your last Bolt change must be reapplied on top of the newer GitHub state. Choose pull and discard when GitHub is the version you want to keep.
- Merge outside Bolt. Create the pull request in GitHub, review it there, merge it there, then let Bolt pull the merged result.
- Open the project as the owner after collaborator edits. If the work came from collaborators, owner-side opening is part of the sync path.
- Only then check production. Copy env vars into the host, export needed database rows separately, and publish through Bolt hosting, Netlify, or the host you chose.
That sequence prevents blind reconnects until nobody knows which side is source of truth.
Branches without losing work
Use branches for unfinished features, but keep the rules straight.
When you create a branch in Bolt, it starts from the current branch and is created in GitHub too. Switching branches changes where Bolt syncs. The agent only sees messages for the selected branch, so experiments do not bleed into each other.
Merging is different. Bolt cannot merge branches. Open and merge the pull request in GitHub, then continue in Bolt after the next pull. Do not edit the same files in both places at nearly the same time.
What GitHub does not move for you
The repo can contain application code and history. It does not prove runtime configuration.
Secrets are intentionally excluded from project files. That is good security design, but it means a fresh host needs its own secret entries. Bolt server functions read secrets behind the scenes; the repository is not the place to paste them back in.
Bolt Cloud database rows are operational data. Export table rows as CSV or JSON when you need a data backup. Restoring an earlier project version does not restore the database.
Publishing is separate too. Whether you use Bolt hosting, Netlify, or another host, check production env vars, auth redirects, webhook endpoints, and database policies after the code move.
Checklist before you call the sync fixed
- GitHub panel shows
Synced to GitHub - Repository URL and branch are the ones you expected
- Latest Bolt change appears as a GitHub commit
- Outside GitHub edits appear back in Bolt after the next sync check
- Conflicts were resolved once, not repeatedly bypassed
- Branches merge through GitHub pull requests, not inside Bolt
- Secrets are recreated in the correct runtime, never committed
- Needed database rows have a separate export or migration path
- Production host has env vars, redirects, webhooks, and policies configured
- The live URL passes login and one real write in a private browser window
FAQ
Why is bolt new github connected but my changes do not appear in the repository?
Open the GitHub status panel first. If it says Retry sync or Couldn’t sync with GitHub, retry once and then reauthorize the Bolt GitHub app. Also check whether the edit came from a collaborator; collaborator changes sync when the project owner next opens the project.
Can Bolt merge GitHub branches for me?
No. Bolt can create and switch branches, but merging happens through a pull request in GitHub. Bolt then pulls the merged result back on its next repository check.
Does bolt new github back up my whole app?
It backs up project code and version history outside Bolt. Do not treat it as a backup of Bolt Cloud database rows, users, uploaded files, or secrets. Secrets are deliberately kept out of project files, and database rows need their own export or operational backup.