Skip to content

Instantly share code, notes, and snippets.

@k7faq
Created January 6, 2019 23:40
Show Gist options
  • Select an option

  • Save k7faq/754cc3875a78bd15e78786c27b1060cb to your computer and use it in GitHub Desktop.

Select an option

Save k7faq/754cc3875a78bd15e78786c27b1060cb to your computer and use it in GitHub Desktop.
List / Clone all repos in a users GitHub Account
# Tested on MacBook Pro - Mac OS Mohave 10.14.2
# List all repos in a users GitHub Account
curl -si https://api.github.com/users/terraform-aws-modules/repos | grep ssh_url | cut -d '"' -f4
# Clone all repos in a users GitHub Account
curl -si https://api.github.com/users/## GITHUB USER ##/repos | grep ssh_url | cut -d '"' -f4 | xargs -I{} git clone {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment