Last active
May 16, 2023 13:55
-
-
Save dkgndianko/5851d7aec6a618baf8e8eebbefc6eed2 to your computer and use it in GitHub Desktop.
Clone all repositories belonging to a given org or user at Github. You must install `gh` command (`brew install gh` under mac) and be authenticated (`gh auth login`).
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
org=myorg_is_here | |
gh repo list $org --limit 100 | cut -f 1 | xargs -L1 gh repo clone $1 |
But for the gh auth login, how do someone authenticate?
But for the gh auth login, how do someone authenticate?
One way is you can create a personal access token on github, and then save it as an environment variable GITHUB_TOKEN
on your computer.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Happy that helped!