LogoFreestyle
API ReferenceGit

List commits for a repository

List commits from the Git database for a specific repository and branch.

GET
/git/v1/repo/{repo}/git/commits

Path Parameters

repo*string

The repository id

Formatuuid

Query Parameters

branch?string|null

Branch name (defaults to HEAD)

limit?integer|null

Maximum number of commits to return (default: 50, max: 500)

Range0 <= value
offset?integer|null

Number of commits to skip (default: 0)

Range0 <= value

Response Body

application/json

curl -X GET "https://api.freestyle.sh/git/v1/repo/497f6eca-6276-4993-bfeb-53cbbbba6f08/git/commits?branch=main&limit=50&offset=0"
{
  "commits": [
    {
      "author": {
        "date": "2019-08-24T14:15:22Z",
        "name": "string",
        "email": "string"
      },
      "committer": {
        "date": "2019-08-24T14:15:22Z",
        "name": "string",
        "email": "string"
      },
      "message": "string",
      "tree": {
        "sha": "string"
      },
      "parents": [
        {
          "sha": "string"
        }
      ],
      "sha": "string"
    }
  ],
  "count": 0,
  "offset": 0,
  "limit": 0,
  "total": 0
}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.