Created
November 25, 2017 09:15
-
-
Save MarounMaroun/bbc76299ff084c36efc8ad7d6464b77d to your computer and use it in GitHub Desktop.
Clone all of your public repositories
This file contains hidden or 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
repos=$(curl -s https://api.github.com/users/{USER}/repos?per_page=1000 | grep -oP "(?<=clone_url\": \").*(?=\")") | |
echo "$repos" | while read line ; do | |
git clone $line | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment