Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mirstan/0e6caad198b926905d923e12afef0460 to your computer and use it in GitHub Desktop.
Save mirstan/0e6caad198b926905d923e12afef0460 to your computer and use it in GitHub Desktop.
Clone all repos from a GitHub organization
#This worked for me and assumes that you've installed gh and jq then authenticated using gh auth login :
gh repo list $ORG --limit 9999 --json sshUrl | jq '.[]|.sshUrl' | xargs -n1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment