Created
April 13, 2021 16:38
-
-
Save jaysonsantos/895c73fe011241b6e250c98f156ddb4f to your computer and use it in GitHub Desktop.
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
function gclone() { | |
local organization | |
local repositories | |
organization="$1" | |
repositories="$(gh repo list -L 1000 "$organization" | fzf --multi --cycle | awk '{print $1}')" | |
for repository in $repositories; do | |
echo "Cloning $repository" | |
gh repo clone "$repository" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment