gh repo clone
Jump to navigation
Jump to search
↑ https://cli.github.com/manual/gh_repo_clone
gh repo clone your-org/your-repo [1]
Bash
for REPO in $(gh repo list --visibility=private --limit 1000 YOUR-ORGANIZATION | cut -f1); do gh repo clone $REPO; done
Fish gh_org_clone.sh
for REPO in (gh repo list YOUR_ORG --visibility=private --limit 1000 --json nameWithOwner --jq '.[].nameWithOwner') gh repo clone $REPO end
gh repo clone cannot clone: repository argument required Usage: gh repo clone <repository> [<directory>] [-- <gitflags>...] Flags: -u, --upstream-remote-name string Upstream remote name when cloning a fork (default "upstream")
Related[edit]
See also[edit]
gh repo clone, gh_org_clone.shgh repo [ create | list | clone | sync | ]gh repo list
Advertising: