mirror of
https://github.com/KohakuBlueleaf/KohakuHub.git
synced 2026-07-15 18:25:09 -05:00
618 B
618 B
title, description, icon
| title | description | icon |
|---|---|---|
| Branch Operations | Create, delete, revert, reset, cherry-pick commits | i-carbon-branch |
Branch Operations
Git-like branch management.
Operations
Create:
POST /api/repos/branches/create
{
"repo_type": "model",
"namespace": "user",
"name": "repo",
"branch": "dev",
"revision": "main"
}
Delete:
DELETE /api/repos/branches/delete
Revert:
POST /api/repos/branches/revert
Reset:
POST /api/repos/branches/reset
Cherry-pick:
POST /api/repos/branches/cherry-pick
See API.md for full details.