mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 10:19:03 +00:00
Update README.md and examples
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
# GitHub Cloud
|
||||
|
||||
clone a **users** repos
|
||||
clone a **users** repos, assumes ghorg conf.yaml is setup with a token
|
||||
|
||||
```
|
||||
$ ghorg clone <github_username> --clone-type=user
|
||||
```
|
||||
|
||||
clone an **org**
|
||||
clone an **org**, using a token on the commandline
|
||||
|
||||
```
|
||||
$ ghorg clone <github_org>
|
||||
$ ghorg clone <github_org> --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
|
||||
```
|
||||
|
||||
clone all repos from a **github org** that are **prefixed** with "frontend" **into a folder** called "design_only"
|
||||
clone all repos from a **github org** that are **prefixed** with "frontend" **into a folder** called "design_only", assumes ghorg conf.yaml is setup with a token
|
||||
|
||||
```
|
||||
$ ghorg clone <github_org> --match-regex=^frontend --output-dir=design_only
|
||||
@@ -23,17 +23,17 @@ $ ghorg clone <github_org> --match-regex=^frontend --output-dir=design_only
|
||||
clone a **users** repos
|
||||
|
||||
```
|
||||
$ ghorg clone <github_username> --clone-type=user --base-url=https://internal.github.com
|
||||
$ ghorg clone <github_username> --clone-type=user --base-url=https://internal.github.com --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
|
||||
```
|
||||
|
||||
clone an **org**
|
||||
|
||||
```
|
||||
$ ghorg clone <github_org> --base-url=https://internal.github.com
|
||||
$ ghorg clone <github_org> --base-url=https://your.internal.github.com --token=bGVhdmUgYSBjb21tZW50IG9uIGlzc3VlIDY2
|
||||
```
|
||||
|
||||
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
|
||||
$ ghorg clone <github_org> --match-regex=^frontend --output-dir=design_only --base-url=https://your.internal.github.com
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user