Skip to content

Instantly share code, notes, and snippets.

Forked from creationix/getMyCode.js
Created March 1, 2023 21:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Script to download all repos for a user
// Run this with node and then run the output with sh
var Http = require('http')
var ChildProcess = require('child_process');"", function (err, json) {
if (err) throw err;
var data = JSON.parse(json);
data.repositories.forEach(function (repo) {
console.log("echo " + JSON.stringify( + " - " + repo.description));
console.log("git clone --bare " + repo.url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment