From d457ddf0ca43d0fb777a6b97692f74041d51f710 Mon Sep 17 00:00:00 2001 From: Ruben Hoenle Date: Fri, 26 Jul 2024 00:59:02 +0200 Subject: [PATCH] chore(docs): add CLI instructions for mirrors to README --- 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.