List all the branches of a GitHub repository

Get a list of all branches for a specific GitHub repository

Run this query

To run this query, you can use the following command:

anyquery run list_all_the_branches_of_a_github_repository

Arguments

Repository name (owner/repo format)

The repository to fetch branches from (owner/repo)

Additional informations

Source code Author

Tip

To run a hub query on a different account, you can create a new profile using the anyquery profile create command. For example, let's say you have two GitHub accounts, run anyquery profile create github to authenticate with the second account. Next time you run a query, Anyquery will prompt you to select the profile to use.