Skip to content

Get specified ref or filtered repository's refs

GET
/repos/{owner}/{repo}/git/refs/{ref}
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

ref
required
string

Part or full name of the ref

ReferenceList

Media type application/json
Array<object>
Reference represents a Git reference.
object
object
GitObject represents a Git object.
object
sha
string
type
string
url
string
ref
string
url
string
Example generated
[
{
"object": {
"sha": "example",
"type": "example",
"url": "example"
},
"ref": "example",
"url": "example"
}
]

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}