Created
January 13, 2022 15:49
-
-
Save DanielMSchmidt/0eab4e3c868e05ca21d7a946ee8d5213 to your computer and use it in GitHub Desktop.
Clone all repos in an org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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