Skip to content

Instantly share code, notes, and snippets.

@baysideengineer
Last active June 24, 2023 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baysideengineer/f83aa5bcb88ebf6893515877b88eaca6 to your computer and use it in GitHub Desktop.
Save baysideengineer/f83aa5bcb88ebf6893515877b88eaca6 to your computer and use it in GitHub Desktop.
Clone all repositories from GitHub and GitLab.
#!/bin/bash
# GitHub
gh repo list <organization_name> --limit 1000 | while read -r repo _; do
gh repo clone "$repo" "$repo"
done
# GitLab
glab repo clone -g <group_name> -p --paginate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment