while read -r repo_name clone_url do git clone --mirror "$clone_url" "/${repo_name%.git}.git" done < <(curl -sk "https://api.github.com/orgs/openstack/repos?per_page=5000" \ | jq -r -c '.[] | .full_name+" "+.clone_url')