Last active
March 22, 2024 21:04
-
-
Save sudo-adduser-jordan/814fdca12516cb1b69089a08ff8d2fb7 to your computer and use it in GitHub Desktop.
Git list of all repositories
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
# 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