capabilities.work

List Git references matching a prefix

One step with GitHub. We can help you get access.

Look something up

List Git references matching a prefix

with GitHub · Software Construction Management

Use GitHub: its GitHub v3 REST Git API lets you list Git references matching a prefix in a single step (GET /repos/{owner}/{repo}/git/matching-refs/{ref}). capabilities.work can help you get signed up and connected.

  • How do I find all branches whose names start with feature/?
  • Can I list every tag reference that begins with v1 in a repository?
Say it to your AI assistant
  • List all refs in {owner}/{repo} that match {ref}.
  • Find every branch or tag in {owner}/{repo} whose name starts with {ref}.
For your developer

GET /repos/{owner}/{repo}/git/matching-refs/{ref} in GitHub v3 REST Git API. Full spec on APIs.io.