Every Splitleaf site is a Git repository, and the copy on GitHub is on your own account. The App has Git built in. You do not need Git on your computer.
To connect GitHub and pick a repository, see Connect GitHub.
The repository
The repository is the site folder: .git/ sits beside pages/ and splitleaf.config.json. Any Git tool can read it: the git command, your IDE, GitHub Desktop.
main is the live site, as with continuous deployment. Only a publish writes to main, and every publish that goes live is one commit and one release tag.
Branches, tags and refs
| Name | What it is |
|---|---|
main | The live site. Only a publish writes to it. |
staging | The staged changes. Stage writes this branch and never main. |
dist | Manual hosting only. The built site, as one commit with no parent. Each publish replaces it. If your repository already has a dist branch, the App uses splitleaf-dist. |
release/2026-11-28-0941 | One annotated tag for each publish that goes live. The time is in UTC. Two publishes in the same minute get -2, -3. |
refs/notes/splitleaf | Git notes on the publish commits: what each publish contained, and who published it |
splitleaf/wip/<user ID> | A backup of your work that is not published. The App pushes it when you leave the window, when the computer sleeps or locks, and when you quit. Nothing in the App reads it. |
The message of a release tag says who published and what went out, by group. The App never moves or reuses a tag.
Note: The App writes staging, dist, the notes and the backup refs. Do not push your own commits to them.
What Splitleaf commits
| Commit message | When |
|---|---|
Publish site (via Splitleaf) | A publish to main |
Publish staging (via Splitleaf) | Stage, on the staging branch |
Merge teammate changes (via Splitleaf) | Team sync merges a publish from a teammate into your copy |
Save draft (via Splitleaf) | Your work at a sync, so that Git can merge it |
Publish built site (via Splitleaf) | The snapshot on the dist branch |
Each commit names the person who made the change. The message also has a Splitleaf-user trailer with the user ID.
A publish commits the site files, splitleaf.config.json, AGENTS.md and the SKILL.md files. A file that the App does not know, for example README.md, shows on the Publish screen in the group Other.
The App writes no .gitignore. It puts its ignore rules in .git/info/exclude, which only this clone reads:
# Splitleaf (this computer only)
node_modules/
.DS_Store
*.log
*.tmp
dist/
dist/ is on the list for Vercel and Manual hosting, so the build output stays out of main.
The site folder never holds a token. integrations in splitleaf.config.json names the repository and the host only.
Team sync
Every copy of the site follows the live site, main. The App syncs every 20 seconds, when the window gets focus, and before every stage and every publish.
- A copy with no local changes moves forward to the new
main. - A copy with local changes merges file by file, CSS rule by rule and setting by setting.
- When you and a teammate changed the same item, the App asks which version to keep.
You can edit without a network. The sync waits until you are online. For the steps and the sync pill, see Work with your team.
Work from GitHub
You can change main outside the App, for example when you merge a pull request on GitHub.
- Merge the change into
mainon GitHub. - Open the site in the App. The App fetches
mainand merges it into your copy. - In the top bar, click Publish.
- The Publish screen shows Changed outside Splitleaf.
- Click Publish to put the change live.
With Vercel and Manual hosting, a push to main does not change the live site. The App builds and sends the site. The live site is always the latest release.
The push to main is fast-forward only. An old copy of the site can never replace newer work.
Caution: Quit the App before you run a Git command that changes the files or main. Examples: git checkout, git pull, git reset. The App and the command can write the same files at the same time.