-
-
Save DeepInThought/ba2011017b10f2061bfa10765377939e to your computer and use it in GitHub Desktop.
Clone all of the projects for a given user or organization.
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 | |
# Simple helper script that iterates over available repositories and clones them down. | |
# I know it could use some work. | |
export USER=syntaqx | |
curl -u $GITHUB_TOKEN:x-oauth-basic 'https://api.github.com/orgs/$USER/repos?per_page=100' | jq '.[].ssh_url' -r | while read url; do git clone "$url"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment