Skip to content

Create a local mirror of all your GitHub repositories #407

@appwiz

Description

@appwiz

content

Command

for i in `gh repo list -L 500 --json nameWithOwner | jq -r ".[].nameWithOwner"`; do 
    echo $i; gh repo clone $i; 
done;

Notes

  • Uses the GitHub CLI
  • Increase the list limit (-L) to 500 from the default (30)
  • Request only the nameWithOwner field e.g. appwiz/appwiz.github.io. The name field provides the repo name only e.g. appwiz.github.io.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions