Last active
November 17, 2020 16:26
-
-
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)
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 | |
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