Skip to content

Instantly share code, notes, and snippets.

@pax-k
Forked from potter0815/cloneall.sh
Last active December 8, 2021 00:27
Show Gist options
  • Save pax-k/b0a22d46043ecf396e58ceee193a0009 to your computer and use it in GitHub Desktop.
Save pax-k/b0a22d46043ecf396e58ceee193a0009 to your computer and use it in GitHub Desktop.
clone all private repos of an organization
#!/bin/bash
#requires jq -> http://stedolan.github.io/jq/
organization="kadena-io"
repo_list=$(curl https://api.github.com/orgs/$organization/repos?per_page=100 | jq .[].ssh_url | sed -e 's/^"//' -e 's/"$//')
for repo in $repo_list
do
echo "Repo found: $repo"
git clone $repo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment