首页 > 其他 > 详细

Automatically download a user's repository Github

时间:2020-05-10 19:14:42      阅读:39      评论:0      收藏:0      [点我收藏+]

it‘s fine to use shell script to get job done

username=pat
wget -N -O "github_user.list" "https://api.github.com/users/${username}/repos?per_page=100"
grep -w "clone_url" github_user.list> list.txt
sed -i s/"clone_url":/git clone/g ./list.txt
###delete last comma ","
sed -i "s/.$//g" ./list.txt
bash list.txt

save this script and run it.

It is suitable for most individual users, except commercial companies.

Automatically download a user's repository Github

原文:https://www.cnblogs.com/qianjiashi/p/12864325.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!