Last active
August 29, 2015 14:19
-
-
Save digitaldrummerj/848fc370b9975f7b654c to your computer and use it in GitHub Desktop.
OSx - Get All IonicWorkshop Repositories
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
#OSX Command | |
curl -s https://api.github.com/orgs/IonicWorkshop/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["clone_url"]} ]}' | |
#Windows Linqpad using Octokit.Net Nuget Package | |
var client = new GitHubClient(new Octokit.ProductHeaderValue("ProjectOmegatron")); | |
var repos = client.Repository.GetAllForOrg("IonicWorkshop").Result; | |
foreach (Repository repo in repos) | |
{ | |
string.Format("git clone {0}\n", repo.CloneUrl).Dump(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment