gh-issue-develop - Man Page

Manage linked branches for an issue

Synopsis

gh issue develop [flags] {<number> | <url>}

Options

-b,  --base <string>

Name of the base branch you want to make your new branch from

-c,  --checkout

Checkout the branch after creating it

-i,  --issue-repo <string>

Name or URL of the issue's repository

-l,  --list

List linked branches for the issue

-n,  --name <string>

Name of the branch to create

Options Inherited from Parent Commands

-R,  --repo <[HOST/]OWNER/REPO>

Select another repository using the [HOST/]OWNER/REPO format

Example

$ gh issue develop --list 123 # list branches for issue 123
$ gh issue develop --list --issue-repo "github/cli" 123 # list branches for issue 123 in repo "github/cli"
$ gh issue develop --list https://github.com/github/cli/issues/123 # list branches for issue 123 in repo "github/cli"
$ gh issue develop 123 --name "my-branch" --base my-feature # create a branch for issue 123 based on the my-feature branch
$ gh issue develop 123 --checkout # fetch and checkout the branch for issue 123 after creating it

See Also

gh-issue(1)

Referenced By

gh-issue(1).

May 2023 GitHub CLI manual