Create a new commit that resets a branch back to a specific commit SHA.Documentation Index
Fetch the complete documentation index at: https://code.storage/docs/llms.txt
Use this file to discover all available pages before exploring further.
Request Format
Send a singlemetadata object.
Metadata Fields
Branch name to reset (no
refs/ prefix).Commit SHA to reset the branch to.
Object with
name and email.Guard to ensure the current tip matches before applying.
Commit message for the restore commit.
Object with
name and email.JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:writescope
Response
Error Responses
Missing or invalid fields
Invalid JWT or missing authorization header
Missing
git:write scopeRepository or commit not found
Expected head SHA does not match