---
title: "Changes to Update a branch reference to a new commit"
method: PUT
path: "/repos/{owner}/{repo}/branches/{branch}"
---

# Changes to Update a branch reference to a new commit

`PUT /repos/{owner}/{repo}/branches/{branch}`

> Every recorded change to this operation, newest first.
> 14 revisions in range; 1 not diffed.

## Timeline

Changed in 2 of 14 revisions.

- **2026-10-28** `7ef50c4c527f`: 4 info
- **2026-07-13** `4df6be504c96`: 1 info

## Changes

- **2026-10-28** `7ef50c4c527f`: 4 info
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `409`
  - removed the non-success response with the status `422`
- **2026-07-13** `4df6be504c96`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/gitea/apis/gitea-api/docs/repos/:owner/:repo/branches/:branch/put.md) - [API](https://skmtc.dev/gitea/apis/gitea-api.md) - [Page](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/branches/:branch/put)
