v52

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2026-08-03134119177.4 KB
experimental

hard reset branch

Relocate branch to refer to ref. Branch must not contain uncommitted data.

put/repositories/{repository}/branches/{branch}/hard_reset

Query parameters

refstring required

After reset, branch will point at this reference.

forceboolean

Response

reset successful