Skip to content

get list of all project branches via api/command line #23776

Discussion options

You must be logged in to vote

Hi @n6rej,

Thanks for being here! I’m sharing the solution you’ve received from Support here as it might help others. 

There are a few ways that you can do this. I’d recommend from the terminal, and using v3 of our API (REST) you can make a GET request to fetch these specifically (as documented here: https://developer.github.com/v3/repos/branches/#list-branches)

curl https://api.github.com/repos/joomla/joomla-cms/branches

Or if this is a private repository that you have access to then you’ll need to make an authenticated request using either an OAuth / Personal Access Token or using basic authentications (username / password) (as documented here:https://developer.github.com/v3/#authentic…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@azzarb
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants