Skip to content

Instantly share code, notes, and snippets.

View leoapost's full-sized avatar

Leonidas Apostolidis leoapost

View GitHub Profile
@leoapost
leoapost / gist:4317863
Created December 17, 2012 12:12
Linux command to clone all your public Github repos.
# Replace GITHUB_NAME with your github username (e.g. leoapost)
for x in $(curl https://api.github.com/users/GITHUB_NAME/repos | grep ssh_url | awk 'gsub(/.*\/|\.git.*/,"")') ; do if [ ! -d $x ]; then git clone [email protected]:GITHUB_NAME/$x.git ; fi ; done