How Do You List the Repositories in GitHub for a Specific Organization without Using the Web UI?

Problem scenario
How do you use the GitHub API to list repositories for an organization?

Solution
Draft a command like this:

curl -u jdoe https://api.github.com/orgs/foobar/repos | grep git_commits_url

  • Change "jdoe" to the username of your GitHub account
  • Change "foobar" to the name of your organization

Leave a comment

Your email address will not be published. Required fields are marked *