Skip to content

Instantly share code, notes, and snippets.

@CFM880
Created May 5, 2019 14:50
Show Gist options
  • Save CFM880/4bf3a9e2a2b67b6d1f116240c316a4d7 to your computer and use it in GitHub Desktop.
Save CFM880/4bf3a9e2a2b67b6d1f116240c316a4d7 to your computer and use it in GitHub Desktop.
批量下载某个github账户下的repo
#!/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