Skip to content

Instantly share code, notes, and snippets.

@16BitS3G4l
Last active November 17, 2020 16:26
Show Gist options
  • Save 16BitS3G4l/2054f8864d73d1bd9e1907266718cde9 to your computer and use it in GitHub Desktop.
Save 16BitS3G4l/2054f8864d73d1bd9e1907266718cde9 to your computer and use it in GitHub Desktop.
Bash script to download all of a user's repositories (public only, unless password is cached)
#!/bin/bash
USER="your-username"
curl -s https://api.github.com/users/$USER/repos | grep "https://github.com/[a-zA-Z0-9-]*/[a-zA-Z0-9-]*.git" -o | xargs -n1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment