# To GitHub

> Leave with everything, in one command.

Applies to: Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/migrate/to-github/

For agents: export github owner/repo: creates or uses a GitHub repository (via the Sypnia GitHub App with write access, granted only for the export), pushes all refs and LFS, recreates issues and PRs (with comments, labels, milestones; authorship noted in the text), releases; updates git.remote in sypnia.toml; the repository in Sypnia Git stays until you archive or delete it. Also `npx @sypnia/git export archive` → a .tar with a git bundle and JSON of issues/PRs (works without GitHub).

```bash
npx @sypnia/git export github laespiga/web
```

- Pushes **every branch, tag and LFS file** to GitHub.
- Recreates **issues and pull requests** with their comments, labels and milestones (the original author and date are noted in each one).
- Copies **releases** and their files.
- Changes `git.remote` in [`sypnia.toml`](https://git.docs.sypnia.com/migrate/sypnia-toml), so the other Sypnia products follow the code.

Your repository in Sypnia Git stays as it was until you [archive or delete it](https://git.docs.sypnia.com/repos/repositories). Not going to GitHub? `npx @sypnia/git export archive` gives you a file with a git bundle and every issue and pull request as JSON.
