mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-28 02:18:59 +00:00
40 lines
831 B
Markdown
40 lines
831 B
Markdown
# GitHub Cloud
|
|
|
|
clone a **users** repos
|
|
|
|
```
|
|
$ ghorg clone <github_username> --clone-type=user
|
|
```
|
|
|
|
clone an **org**
|
|
|
|
```
|
|
$ ghorg clone <github_org>
|
|
```
|
|
|
|
clone all repos from a **github org** that are **prefixed** with "frontend" **into a folder** called "design_only"
|
|
|
|
```
|
|
$ ghorg clone <github_org> --match-regex=^frontend --output-dir=design_only
|
|
```
|
|
|
|
# GitHub Enterprise
|
|
|
|
clone a **users** repos
|
|
|
|
```
|
|
$ ghorg clone <github_username> --clone-type=user --base-url=https://internal.github.com
|
|
```
|
|
|
|
clone an **org**
|
|
|
|
```
|
|
$ ghorg clone <github_org> --base-url=https://internal.github.com
|
|
```
|
|
|
|
clone all repos from a **github org** that are **prefixed** with "frontend" **into a folder** called "design_only"
|
|
|
|
```
|
|
$ ghorg clone <github_org> --match-regex=^frontend --output-dir=design_only --base-url=https://internal.github.com
|
|
```
|