跳转到内容

cnb-rs repo branch delete

cnb-rs repo branch delete <BRANCH> [-y]
cnb-rs repo branch rm     <BRANCH> [-y]

删除分支(不可撤销)。

参数

  • <BRANCH>: 分支名(必填)

选项

  • -y, --yes: 跳过 confirm 提示

继承的全局选项:

  • --repo <REPO>: 指定仓库路径

示例

bash
# 弹 confirm
cnb-rs --repo wwvo/cnb-rs/cnb-rs repo branch rm feat/old-thing

# 跳过 confirm(CI / 脚本)
cnb-rs --repo wwvo/cnb-rs/cnb-rs repo branch rm feat/old-thing -y

API

步骤API方法
删分支${CNB_API_ENDPOINT}/{repo}/-/git/branches/{branch}DELETE

另请参阅

Released under the MIT License.