Skip to content

Instantly share code, notes, and snippets.

@csu
Created July 12, 2015 02:50
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 csu/7b605646bf686218878d to your computer and use it in GitHub Desktop.
Save csu/7b605646bf686218878d to your computer and use it in GitHub Desktop.
clone all repos
#!/bin/bash
GIT_CLONE_CMD="git clone --quiet --mirror --recursive "
REPOLIST=`curl --silent https://api.github.com/users/csu/repos -q | grep "\"ssh_url\"" | awk -F': "' '{print $2}' | sed -e 's/",//g'`
for REPO in $REPOLIST; do
${GIT_CLONE_CMD}${REPO}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment