Skip to content

Instantly share code, notes, and snippets.

@brunomarks7
Created January 30, 2025 23:36
Show Gist options
  • Select an option

  • Save brunomarks7/f55cf3e015f3fe119660b12db3b15e97 to your computer and use it in GitHub Desktop.

Select an option

Save brunomarks7/f55cf3e015f3fe119660b12db3b15e97 to your computer and use it in GitHub Desktop.
Clone all repositories using gh-cli
gh repo list <org-name> | awk '{print $1}' > repository_urls.txt
while IFS= read -r url; do
repo_name=$(basename "$url" .git)
gh repo clone "$url" "$repo_name"
done < repository_urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment