Skip to content

Instantly share code, notes, and snippets.

@RaminMammadzada
Last active December 26, 2018 20:23
Show Gist options
  • Save RaminMammadzada/44120d0056902de4f02c1d921f45d2c5 to your computer and use it in GitHub Desktop.
Save RaminMammadzada/44120d0056902de4f02c1d921f45d2c5 to your computer and use it in GitHub Desktop.
Script to clone all of the repos at once
Script:
curl -s https://api.github.com/users/user/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
More info:
https://blog.scottlowe.org/2018/07/19/cloning-all-repositories-in-a-github-organization/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment