mirror of
https://github.com/gabrie30/ghorg.git
synced 2026-01-21 08:11:14 +01:00
1.2 KiB
1.2 KiB
Gitea Examples
Note: all command line arguments can be permanently set in your
$HOME/.config/ghorg/conf.yamlfor 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
Things to know
- The
--preserve-scm-hostnameflag will always create a top level folder in your GHORG_ABSOLUTE_PATH_TO_CLONE_TO with the hostname of theGHORG_SCM_BASE_URLyou are cloning from.
Examples
-
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