GitHub CLI 2 cheatsheet

GitHub CLI 2: Issues

4 common GitHub CLI 2 tasks.

Create an issue

Open a new issue with a title and body.

gh issue create --title "Bug: login fails" --body "Steps to reproduce..."

List your assigned issues

Show open issues assigned to you.

gh issue list --assignee @me

Close an issue

Close an issue with a comment.

gh issue close 45 --comment "Fixed in #50"

Create a branch for an issue

Create and check out a branch linked to the issue.

gh issue develop 45 --checkout

Was this page helpful?