Skip to content

Instantly share code, notes, and snippets.

@jackzampolin
Created January 15, 2020 01:24
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 jackzampolin/fd5fab057cf77f3b12a07cde0e9e6696 to your computer and use it in GitHub Desktop.
Save jackzampolin/fd5fab057cf77f3b12a07cde0e9e6696 to your computer and use it in GitHub Desktop.
#!/bin/bash
# NOTE: Must have https://hub.github.com/ installed locally and configured
# NOTE: This also requires `jq`
TMREPOS=$(hub api orgs/tendermint/repos -H "type=all" --paginate | jq '.[].name' -r)
COREPOS=$(hub api orgs/cosmos/repos -H "type=all" --paginate | jq '.[].name' -r)
for REPO in $TMREPOS; do
git clone git@github.com:tendermint/$REPO.git "$HOME/tendermint/$REPO"
done
for REPO in $COREPOS; do
git clone git@github.com:cosmos/$REPO.git "$HOME/cosmos/$REPO"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment