# Quickstart: import from GitHub

> Move a repository from GitHub with its history, issues and pull requests, and keep a read-only copy there if you like.

Applies to: Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/start/quickstart-import/

For agents: Import: `npx @sypnia/git login`, then `npx @sypnia/git import github owner/repo [--mirror]`: authorizes the Sypnia GitHub App (read-only; write access to that repository only with --mirror, which keeps GitHub as a read-only copy updated from Sypnia Git), copies git history (all branches, tags, LFS), issues, pull requests with comments and reviews, labels, milestones, releases; maps GitHub users to Sypnia accounts by verified e-mail, otherwise keeps the name as text; writes git.remote into sypnia.toml.

### 1. Sign in

```bash
npx @sypnia/git login
```

### 2. Import

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

The CLI asks you to install the Sypnia GitHub App on that repository (read-only; with `--mirror`, it may also write to that one repository to keep it as a copy). It copies:

- the whole history: every branch, tag and Git LFS object;
- issues and pull requests, with comments, reviews, labels and milestones;
- releases and their files.

People are matched to Sypnia accounts by verified e-mail; anyone else keeps their name as text.

### 3. Point your clone to Sypnia

```bash
git remote set-url origin https://git.app.sypnia.com/laespiga/web.git
```

`import` also writes the new address into [`sypnia.toml`](https://git.docs.sypnia.com/migrate/sypnia-toml).

**You should see:**

The same repository in Sypnia Git. From now on you work in Sypnia Git. With `--mirror`, the GitHub repository stays as a read-only copy, updated on every push to Sypnia Git ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)).
