# Sync a Wisp project to GitHub

Connect a Wisp project to a GitHub repository: every version becomes a commit and every published version a vN tag, in the same layout as the wisp CLI.

## Connect

1. Open the project's settings → **GitHub** and connect your GitHub account.
2. Choose an owner (you or an organization) and a repository name.
3. Wisp creates the repository and pushes the current draft.

## What's synced

From then on:

- Every new version is a commit, with the version's summary as the message.
- Every published version gets a `vN` tag.

The repository uses the same layout as the [CLI](/cli): `wisp.json`, `functions/` and `lib/`.

Secrets are never pushed — only their names appear in code that reads them.

## Sync again

If a push fails (for example, the repository was renamed), fix the cause and press **Sync** in the GitHub settings.

## Editing

The mirror goes from Wisp to GitHub. To edit locally and send changes back, use the [CLI](/cli) (`wisp pull`, `wisp push`).
