Loading tutorials
gh installed. Every later chapter depends on gh knowing who you are, so we start with authentication.3 min readgh auth status shows a logged-in account. It also assumes you know basic Git: clone, remote, and push. Here you will use gh repo to get a repository onto your machine, create new ones, inspect them, and fork other people's.2 min readgh installed and authenticated (see the chapter on logging in), that you are inside a clone of a GitHub repository or have set GH_REPO, and that you know what an issue and a label are on GitHub.2 min readgh is already authenticated (see the chapter on logging in), and that you know what a pull request is on GitHub. You will open a pull request from a branch, list pull requests, and check out someone else's pull request locally.2 min readgh pr create, as covered in the previous chapter, and that you are signed in with gh auth login.2 min readgh, know what a GitHub Actions workflow and a run are, and are comfortable in a shell. A workflow is a YAML file in .github/workflows/. A run is one execution of that workflow.2 min readgh and filter it. It assumes you can already list issues and pull requests with gh issue list and gh pr list, and that you have a basic idea of what JSON is. You do not need to know jq in advance.2 min readgh (see the authentication chapter), know the --json and --jq flags from the previous chapter, and understand what a REST endpoint is. Most tasks have a dedicated gh command. When one doesn't, gh api lets you call any GitHub REST or GraphQL endpo2 min readgh interactively, know how --json and --jq work, and are comfortable writing short bash scripts. It covers what changes when gh runs without a person at the keyboard: credentials, repository selection, prompts, and error handling.2 min readgh release. It assumes you can tag and push with Git, are signed in with gh auth login, and know what a pull request is. The chapter runs about 600 words.3 min readgh while signed in (see the authentication chapter) and that you know how --json and --jq work from the structured output chapter. You also need to know what GitHub issues and pull requests are.2 min readgh commands for pull requests and issues, and that you are logged in. It covers two ways to tailor gh: aliases for shortcuts, and configuration for default behavior.2 min readgh commands, are signed in with gh auth login, and have read the chapters on --json/--jq output and scripting. You will install an extension, manage it, and write a small one yourself.2 min read