1、列出所有仓库
curl -s https://api.github.com/users/{username}/repos | grep ssh_url | cut -d\" -f4
2、列出所有仓库并下载
curl -s https://api.github.com/users/{username}/repos | grep clone_url | cut -d\" -f4|awk '{system("git clone "$1)}'
1、列出所有仓库
curl -s https://api.github.com/users/{username}/repos | grep ssh_url | cut -d\" -f4
2、列出所有仓库并下载
curl -s https://api.github.com/users/{username}/repos | grep clone_url | cut -d\" -f4|awk '{system("git clone "$1)}'
转载于:https://my.oschina.net/u/574036/blog/1649934