Skip to content

Instantly share code, notes, and snippets.

@Pierre-Mike
Last active October 19, 2023 09:28
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 Pierre-Mike/eb7e177c4154915c21f670114608f0e1 to your computer and use it in GitHub Desktop.
Save Pierre-Mike/eb7e177c4154915c21f670114608f0e1 to your computer and use it in GitHub Desktop.
gh auth login
repoUrls=($(gh repo list --json url | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*"))
for repoUrl in "${repoUrls[@]}"
do
gh repo clone "$repoUrl"
done
@Pierre-Mike
Copy link
Author

Pierre-Mike commented Oct 19, 2023

bash <(curl -sL https://gist.githubusercontent.com/Pierre-Mike/eb7e177c4154915c21f670114608f0e1/raw/8ed0b8cc89ecaf95a84554ac0aa9075e83e89a57/cloneAll.sh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment