List a project's repository branches
One step with GitLab. We can help you get access.
Look something up
List a project's repository branches
with GitLab · Software Construction Management
Works with AI assistants
Use GitLab: its GitLab Projects API lets you list a project's repository branches in a single step (GET /api/v4/projects/{id}/repository/branches). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I list all the branches in a GitLab project repository?
- Can I search branches by name or with a regex pattern?
- Which sort orders are available when listing repository branches?
Say it to your AI assistant
- List the branches in project {id}.
- Find branches in project {id} whose names match {search}.
- List branches in project {id} matching the regex {regex}.
For your developer
GET /api/v4/projects/{id}/repository/branches in GitLab Projects API. Full spec on APIs.io.