---
title: "Changes to Compare two commits"
method: GET
path: "/repos/{owner}/{repo}/compare/{basehead}"
---

# Changes to Compare two commits

`GET /repos/{owner}/{repo}/compare/{basehead}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 62 revisions.

- **2026-04-09** `e75d96fa142e` — 2 info

## Changes

- **2026-04-09** `e75d96fa142e` — 2 info
  - added the media type `application/vnd.github.diff` for the response with the status `200`
  - added the media type `application/vnd.github.patch` for the response with the status `200`

---

[Operation](https://skmtc.dev/github/apis/enterprise-cloud/docs/repos/:owner/:repo/compare/:basehead/get.md) · [API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [Page](https://skmtc.dev/github/apis/enterprise-cloud/changes/repos/:owner/:repo/compare/:basehead/get)
