一、repos 小于100个
此处以rancher为例:
curl -s https://api.github.com/users/rancher/repos?per_page=100 | python -c $'import json, sys, os\nfor repo in json.load(sys.stdin): os.system("git clone " + repo["ssh_url"])'
os、python 版本
二、repos 大于100个
https://github.com/jiankunking/git-clone-all-repos
个人微信公众号:
作者:jiankunking