GitHub CLI | Take GitHub to the command line Take GitHub to the command line gh issue list gh pr status gh pr checkout gh pr create gh pr checks gh release create gh repo view gh alias set View and filter a repository’s open issues
GitHub CLI | Take GitHub to the command line Transition from the terminal to the web browser to view and interact with: Issues Pull requests Repository content Repository home page Repository settings Options-b, --branch <string> Select another branch by passing in the branch name-c, --commit <string>
GitHub CLI | Take GitHub to the command line gh Work seamlessly with GitHub from the command line Core commands gh auth gh browse gh codespace gh gist gh issue gh org gh pr gh project gh release gh repo GitHub Actions commands gh cache gh run gh workflow Additional commands gh alias gh api gh
GitHub CLI | Take GitHub to the command line Sync destination repository from source repository Syncing uses the default branch of the source repository to update the matching branch on the destination repository so they are equal A fast forward update will be used except when the --force flag is specified, then the two branches will be synced using a hard reset
GitHub CLI | Take GitHub to the command line Take GitHub to the command line Create a new GitHub Release for a repository A list of asset files may be given to upload to the new release To define a display label for an asset, append text starting with # after the file name If a matching git tag does not yet
GitHub CLI | Take GitHub to the command line Take GitHub to the command line Create a new GitHub repository To create a repository interactively, use gh repo create with no arguments To create a remote repository non-interactively, supply the repository name and one of --public, --private, or --internal Pass --clone to clone the new repository locally
GitHub CLI | Take GitHub to the command line gh config Display or change configuration settings for gh Current respected settings: git_protocol: the protocol to use for git clone and push operations {https | ssh} (default https) editor: the text editor program to use for authoring text prompt: toggle interactive prompting in the terminal {enabled | disabled} (default enabled)
GitHub CLI | Take GitHub to the command line Take GitHub to the command line gh issue Work with GitHub issues General commands gh issue create gh issue list gh issue status Targeted commands gh issue close gh issue comment
GitHub CLI | Take GitHub to the command line Take GitHub to the command line Options-b, --branch <string> Local branch name to use (default [the name of the head branch])--detach Checkout PR with a detached HEAD-f, --force Reset the existing local branch to the latest state of the pull request