Files
ghorg/examples/gitea.md
2022-07-31 10:21:31 -07:00

805 B

Gitea Examples

Note: all command line arguments can be set in your $HOME/.config/ghorg/conf.yaml for more information see the configuration section of the readme

  1. Clone an org

    ghorg clone <gitea_org> --base-url=https://<your-internal-gitea>.com --token=XXXXXXX
    
  2. Clone a users repos

    ghorg clone <gitea_username> --clone-type=user --base-url=https://<your-internal-gitea>.com --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
    
  3. Clone all repos from a github 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