Created
July 12, 2015 02:50
-
-
Save csu/7b605646bf686218878d to your computer and use it in GitHub Desktop.
clone all repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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