Preview & deploy
GitHub sync
Two-way GitHub sync for source code in your selected SpinBuild stack.
Updated 24 Nov 2026
Your code belongs to you. GitHub sync puts it in a repository under your GitHub account, where you can clone it, review history, open pull requests or take it anywhere else.
Which plans include it
GitHub sync is included on every paid plan: Spark, SpinBuild Lite, Pro, Pro Plus, Scale and Enterprise. Downloading your code as a .zip is included too. If your account has no active plan, choose one on Pricing or Billing.
Connecting
The first time you sync, SpinBuild asks you to authorise it with GitHub for repository access. You can revoke that at any time from GitHub's application settings; syncing will simply stop working until you authorise again.
If you signed up with GitHub, the connection is already there.
Syncing
Project menu → Sync to GitHub. On first sync SpinBuild creates a repository (private by default) named after the project and pushes the current version to main. Later syncs push a new commit with the changes since the last one.
The project header shows the linked repository. The repository name and default branch are visible on the project card.
What is pushed
Every project file except .env. Secrets never leave SpinBuild this way. A .gitignore is part of the template so node_modules and build output stay out too.
Two-way sync
Sync runs both ways. SpinBuild pushes your changes up, and commits made anywhere else are pulled back down automatically — see Pulling from GitHub below.
Running the project elsewhere
The repository uses the stack you selected. The following commands apply to Node-based projects with these scripts; plain HTML/CSS/JS sites may not need an installation step. Configure any required database and external integrations before running:
git clone git@github.com:you/your-app.git
cd your-app
npm install
npm run dev
Running elsewhere requires the dependencies, configuration, database, and hosting appropriate to your project. Review external service integrations and any platform-specific URLs before moving it.
Pulling from GitHub
Sync runs both ways. While a project is open, SpinBuild watches the branch it is connected to. When a commit lands that did not come from SpinBuild — a teammate, the GitHub web editor, you on another machine — it is pulled in automatically and the preview updates to match. The commit appears in the builder with its message, author and short SHA.
Pulling replaces the project's files with what is in that commit, and is saved as a new version. Whatever the project looked like before stays in history, so the version menu above the preview is always a way back.
Two things it will not do: it never pulls while SpinBuild is mid-answer, because replacing files the model is editing would produce a tree neither side intended; and it tries a given commit once, so a failure is reported rather than retried every thirty seconds.
.env is never pulled or pushed — it holds your preview's own database
credentials and does not belong in a repository.