> Canonical HTML: [https://docs.schematic.tech/super/commands/repos/](https://docs.schematic.tech/super/commands/repos/)

# Repository commands

Linking lets Super CLI sync your source to Schematic for checking supertests against a specific
version of your code.

## `super link`

Sync the source from your current commit to Schematic. Your repository needs at least one
commit; a Git remote isn't required.

Linking leaves your files and Git state unchanged. See [Source and commits](/super/help/source/)
for which files the CLI includes and how to exclude files.

**Usage**

```console
super link [path]
```

`path` defaults to your current directory. A path to a subdirectory still links the whole
repository.

**Bash**

```console
$ super link .
  ✓ Linked text-tools · main · 8e44bea
  Next: super check
```

With a saved login, Super CLI automatically syncs commits as you create or check them out. Run
[`super check`](/super/commands/checks/#super-check) to check your supertests.

Each clone or Git worktree needs its own link. Switching branches or checking out another
commit doesn't require relinking.

## `super unlink`

Stop automatic syncing for the repository containing `path`, or your current directory if you
omit the path.

**Usage**

```console
super unlink [path]
```

**Bash**

```console
$ super unlink .
  ✓ Unlinked · text-tools
```

Unlinking doesn't delete synced source or check history, or cancel checks already running.
