I am looking to backup all my Starred repositories and I'm searching for a simple a way to do it.
This should do it. Note you will need
jq
curl https://api.github.com/users/<user>/starred |
jq -r '.[].html_url' |
xargs -l git clone
If you don't want to use jq
you can replace with this ugly awk
line
awk '/^ {4}"html_url"/&&$0=$4' FS='"' |
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With