# From GitHub

> Import repositories with their history, issues, pull requests and releases.

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

For agents: import github: one repo (`owner/repo`) or an organization (`--org owner`, all or selected). Uses the Sypnia GitHub App (read-only scopes: contents, metadata, issues, pull requests). Copies: git refs and objects (mirror clone), LFS, issues, PRs (as closed/merged history or open PRs if the branch exists), comments, reviews, labels, milestones, releases + assets. Users mapped by verified e-mail. Not copied: Actions workflows run (kept as files), secrets, Discussions, Projects, wikis (wiki repos copied as git). Idempotent re-runs; a report lists everything not copied.

```bash
npx @sypnia/git import github laespiga/web          # one repository
npx @sypnia/git import github --org laespiga        # an organization, choosing which repositories
```

The import uses the **Sypnia GitHub App**, installed by you on the repositories you choose, with read-only access.

| Copied                                                               | Not copied                                                      |
| -------------------------------------------------------------------- | --------------------------------------------------------------- |
| every branch, tag and commit; Git LFS files                          | secrets (add them again in Run)                                 |
| issues and pull requests, with comments, reviews, labels, milestones | Discussions and Projects                                        |
| releases and their files                                             | GitHub Actions runs (the workflow files stay in the repository) |
| wikis, as git repositories                                           | stars and watchers                                              |

People are matched to Sypnia accounts by verified e-mail; anyone else keeps their name as text. Running the import again only brings what changed. At the end, a **report** lists anything that could not be copied and why.
