Created
May 5, 2019 14:50
-
-
Save CFM880/4bf3a9e2a2b67b6d1f116240c316a4d7 to your computer and use it in GitHub Desktop.
批量下载某个github账户下的repo
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
#!/bin/bash | |
curl https://api.github.com/users/zhanxiaokai/repos | grep "clone_url" | sed "s/ \"clone_url\": \"/ /g" | sed "s/\",/ /g" > clone_url.txt | |
cat clone_url.txt | 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