From 83495e2974be77622dc3cb6f40619e7ad824b820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ruben=20H=C3=B6nle?= Date: Wed, 31 Jul 2024 16:46:58 +0200 Subject: [PATCH] docs: add CLI instructions for mirrors to README (#543) --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 433012760..7b3a4759e 100644 --- a/README.md +++ b/README.md @@ -515,6 +515,8 @@ on the server it’ll be created. git push origin main ``` +### Nested Repositories + Repositories can be nested too: ```sh @@ -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 ` command.