Git
创建分支。Create branch.
基于指定起始点创建一个新分支。起始点可为分支名称、提交哈希或标签名称。创建成功后返回 201 状态码。 Create a new branch based on the specified starting point. The starting point can be a branch name, commit hash, or tag name. Returns 201 on success. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:rw
post/{repo}/-/git/branches
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/git/branches
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
Request body
Response
Created
Changes
No recorded changes to this operation across all 1 revision of this API.