Created
September 26, 2017 13:54
-
-
Save AnasAboreeda/5e874e9ded11b4f65f613d54bac52d96 to your computer and use it in GitHub Desktop.
Clone All organization private/pullic repos
This file contains hidden or 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
| ORGANIZATION=<organization name> | |
| curl -s https://api.github.com/orgs/$ORGANIZATION/repos\?per_page\=200&access_token=<access_token> | grep clone_url | awk -F '"' '{print $4}' | xargs -n 1 -P 4 git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment