Skip to content

Instantly share code, notes, and snippets.

@jaysonsantos
Created April 13, 2021 16:38
Show Gist options
  • Save jaysonsantos/895c73fe011241b6e250c98f156ddb4f to your computer and use it in GitHub Desktop.
Save jaysonsantos/895c73fe011241b6e250c98f156ddb4f to your computer and use it in GitHub Desktop.
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