Skip to content

Commit

Permalink
docs: add CLI instructions for mirrors to README (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle authored Jul 31, 2024
1 parent 4daebdd commit 83495e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ on the server it’ll be created.
git push origin main
```

### Nested Repositories

Repositories can be nested too:

```sh
Expand All @@ -526,6 +528,16 @@ git remote add charm ssh://localhost:23231/charmbracelet/icecream
git push charm main
```

### Mirrors

You can also *import* repositories from any public remote. Use the `repo import` command.

```sh
ssh -p 23231 localhost repo import soft-serve https://github.com/charmbracelet/soft-serve
```

Use `--mirror` or `-m` to mark the repository as a *pull* mirror.

### Deleting Repositories

You can delete repositories using the `repo delete <repo>` command.
Expand Down

0 comments on commit 83495e2

Please sign in to comment.