Created
February 25, 2015 14:21
-
-
Save rbirkby/a391b89c98938174faa9 to your computer and use it in GitHub Desktop.
Clone all GitHub private organisation repos with PowerShell
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
Param ($accessToken, $organisation) | |
(invoke-webrequest -Uri https://api.github.com/orgs/$organisation/repos?per_page=200"&"access_token=$accessToken"&"type=private).Content | ConvertFrom-Json | % {$_.clone_url} | % {git clone $_} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment