---
title: "Changes to Get a single commit from a repository, it has a GitHub-compatible alias \"/repos/{owner}/{repo}/commits/{ref}\""
method: GET
path: "/repos/{owner}/{repo}/git/commits/{sha}"
---

# Changes to Get a single commit from a repository, it has a GitHub-compatible alias "/repos/{owner}/{repo}/commits/{ref}"

`GET /repos/{owner}/{repo}/git/commits/{sha}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 14 revisions.

- **2026-10-28** `7ef50c4c527f`: 2 info

## Changes

- **2026-10-28** `7ef50c4c527f`: 2 info
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `422`

---

[Operation](https://skmtc.dev/gitea/apis/gitea-api/docs/repos/:owner/:repo/git/commits/:sha/get.md) - [API](https://skmtc.dev/gitea/apis/gitea-api.md) - [Page](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/git/commits/:sha/get)
