Skip to content

Instantly share code, notes, and snippets.

@rbirkby
Created February 25, 2015 14:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rbirkby/a391b89c98938174faa9 to your computer and use it in GitHub Desktop.
Save rbirkby/a391b89c98938174faa9 to your computer and use it in GitHub Desktop.
Clone all GitHub private organisation repos with PowerShell
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