gh issue develop
管理与问题关联的分支
gh issue develop {<number> | <url>} [flags]
选项
-b,--base <string>- 要创建新分支的基分支名称
-
--branch-repo <string> - 要创建新分支的仓库名称或 URL
-c,--checkout- 创建分支后检出
-l,--list- 列出与问题关联的分支
-n,--name <string>- 要创建的分支名称
从父命令继承的选项
-R,--repo <[HOST/]OWNER/REPO>- 使用 [HOST/]OWNER/REPO 格式选择另一个仓库
示例
# List branches for issue 123
$ gh issue develop --list 123
# List branches for issue 123 in repo cli/cli
$ gh issue develop --list --repo cli/cli 123
# Create a branch for issue 123 based on the my-feature branch
$ gh issue develop 123 --base my-feature
# Create a branch for issue 123 and checkout it out
$ gh issue develop 123 --checkout
# Create a branch in repo monalisa/cli for issue 123 in repo cli/cli
$ gh issue develop 123 --repo cli/cli --branch-repo monalisa/cli