码迷,mamicode.com
首页 > 其他好文 > 详细

Automatically download a user's repository Github

时间:2020-05-10 19:40:06      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:ash   get   cep   last   user   dual   ble   class   fine   

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

标签:ash   get   cep   last   user   dual   ble   class   fine   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!