Skip to content

Instantly share code, notes, and snippets.

@DanielMSchmidt
Created January 13, 2022 15:49
Show Gist options
  • Save DanielMSchmidt/0eab4e3c868e05ca21d7a946ee8d5213 to your computer and use it in GitHub Desktop.
Save DanielMSchmidt/0eab4e3c868e05ca21d7a946ee8d5213 to your computer and use it in GitHub Desktop.
Clone all repos in an org
#!/bin/bash
# gh is the GitHub CLI
ORG='cdk8s-team'
gh repo list cdk8s-team --json "name" | jq -r ".[] | .name" | xargs -I '{}' gh repo clone "cdk8s-team/{}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment