Skip to content

Instantly share code, notes, and snippets.

@HeitorAugustoLN
Created July 27, 2020 02:31
Show Gist options
  • Save HeitorAugustoLN/a772a4a178782f9d6424e19e6bfa025d to your computer and use it in GitHub Desktop.
Save HeitorAugustoLN/a772a4a178782f9d6424e19e6bfa025d to your computer and use it in GitHub Desktop.
A shell script that clones all my repositories on github
CNTX={users}; NAME={HeitorAugustoLN}; PAGE=1
curl "https://api.github.com/$CNTX/$NAME/repos?page=$PAGE&per_page=100" |
grep -e 'git_url*' |
cut -d \" -f 4 |
xargs -L1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment