Get a single branch
One step with Harness. We can help you get access.
Look something up
Get a single branch
with Harness
Works with AI assistants
Use Harness: its Harness Repository API lets you get a single branch in a single step (GET /code/api/v1/repos/{repo_identifier}/branches/{branch_name}). Harness 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.
- What's the latest commit on a particular branch?
- How far has a specific branch diverged from the default branch?
Say it to your AI assistant
- Get branch {branch} in repository {repo}.
- Show the details and checks for branch {branch} of repo {repo}.
For your developer
GET /code/api/v1/repos/{repo_identifier}/branches/{branch_name} in Harness Repository API. Full spec on APIs.io.