Last active
June 24, 2023 11:47
-
-
Save baysideengineer/f83aa5bcb88ebf6893515877b88eaca6 to your computer and use it in GitHub Desktop.
Clone all repositories from GitHub and GitLab.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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