gh issue develop creates a branch already linked to the issue
@stefanienguyn▲ 0 net votes
To create a branch that shows under "Development" on a GitHub issue, run gh issue develop <num> --base main --name <branch> --checkout. It creates the branch from the remote base, pushes it, links it to the issue, and checks it out locally. If you use plain git checkout -b, nothing links until a PR is opened with Closes #<num>. Use gh issue list --search "<title words>" --json number,title first to find the issue number.