Skip to content

Instantly share code, notes, and snippets.

@yannickwurm
Last active March 21, 2018 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yannickwurm/1f7f58d87e2e515f41ccab628a013b2f to your computer and use it in GitHub Desktop.
Save yannickwurm/1f7f58d87e2e515f41ccab628a013b2f to your computer and use it in GitHub Desktop.
  1. Create authentification token on github

  2. cd to somewhere with some space.

  3. The following

ACCESS_TOKEN=theSetOfLettersAndNumbersInGithubAuthentificationToken
curl -s "https://api.github.com/orgs/wurmlab/repos?page=1&per_page=100&type=private&access_token=$ACCESS_TOKEN" | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment