curl "https://api.github.com/orgs/orgname/repos?page=1&per_page=100" |
grep -e 'ssh_url*' |
cut -d \" -f 4 |
xargs -L1 git clone
- Replace the
orgname
with the organization name. - Replace
ssh_url
withclone_url
to use HTTPS instead of SSH.
curl "https://api.github.com/orgs/orgname/repos?page=1&per_page=100" |
grep -e 'ssh_url*' |
cut -d \" -f 4 |
xargs -L1 git clone
orgname
with the organization name.ssh_url
with clone_url
to use HTTPS instead of SSH.curl "https://api.github.com/users/username/repos?page=1&per_page=100" |
grep -e 'ssh_url*' |
cut -d \" -f 4 |
xargs -L1 git clone
Replace the username
with your own.
ssh_url
with clone_url
to use HTTPS instead of SSH.