Skip to content

Instantly share code, notes, and snippets.

@sudo-adduser-jordan
Last active March 22, 2024 21:04
Show Gist options
  • Save sudo-adduser-jordan/814fdca12516cb1b69089a08ff8d2fb7 to your computer and use it in GitHub Desktop.
Save sudo-adduser-jordan/814fdca12516cb1b69089a08ff8d2fb7 to your computer and use it in GitHub Desktop.
Git list of all repositories
# GitHub CLI api
# https://cli.github.com/manual/gh_api
### GIT AND PRINT ALL REPOSITORIES ###
# gh api --paginate \
# -H "Accept: application/vnd.github+json" \
# -H "X-GitHub-Api-Version: 2022-11-28" \
# /user/repos | jq '.[].html_url' | awk '{print $NF}' FS=/ | awk -F\" '{print $1}'
gh api --paginate /user/repos --jq '.[].html_url'
# gh api --paginate /user/repos --jq '.[].name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment