Skip to content

Instantly share code, notes, and snippets.

@johnteske
Last active June 28, 2020 02:11
Show Gist options
  • Save johnteske/7610576493924eb214fd274852113b2b to your computer and use it in GitHub Desktop.
Save johnteske/7610576493924eb214fd274852113b2b to your computer and use it in GitHub Desktop.
Check all repos for default branches named "master"
# requires gh and jq
gh api user/repos | jq -r '.[] | select(.default_branch == "master") | .full_name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment