Note: all command line arguments can be permanently set in your
$HOME/.config/ghorg/conf.yaml
for more information see the configuration section of the README.md.
To view all additional flags see the sample-conf.yaml or use ghorg clone --help
- The
--preserve-scm-hostname
flag will always create a top level folder in your GHORG_ABSOLUTE_PATH_TO_CLONE_TO with the hostname of theGHORG_SCM_BASE_URL
you are cloning from.
-
Clone an org
ghorg clone <gitea_org> --base-url=https://<your-internal-gitea>.com --token=XXXXXXX
-
Clone a users repos
ghorg clone <gitea_username> --clone-type=user --base-url=https://<your-internal-gitea>.com --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
-
Clone all repos from a gitea org that are prefixed with "frontend" into a folder called "design_only"
ghorg clone <gitea_org> --match-regex=^frontend --output-dir=design_only --base-url=https://<your-internal-gitea>.com --token=XXXXXXX