Skip to main content
GET
/
v1
/
repos
/
{repo_id}
/
info
/
refs
Get Git references (git protocol)
curl --request GET \
  --url https://repos.morphllm.com/v1/repos/{repo_id}/info/refs \
  --header 'Authorization: Bearer <token>'
This response does not have an example.

Git Protocol Endpoint

This endpoint implements the Git smart HTTP protocol’s reference discovery phase. It’s called automatically by:
  • git clone
  • git fetch
  • git pull
  • morphGit.clone()
  • morphGit.pull()

Authentication Flow

The git-proxy validates your Morph API key and translates it to Azure DevOps authentication automatically.

When to Use

You typically won’t call this endpoint directly. It’s used under the hood by git clients and the Morph SDK.

Authorizations

Authorization
string
header
required

Use your Morph API key as the bearer token. Get your API key at https://morphllm.com/dashboard

Path Parameters

repo_id
string
required

Repository identifier (e.g., 'my-project')

Example:

"my-project"

Query Parameters

service
enum<string>

Git service name (e.g., 'git-upload-pack' for fetch operations)

Available options:
git-upload-pack,
git-receive-pack
Example:

"git-upload-pack"

Response

Git references retrieved successfully

Git protocol packed references