Renames: - github_repo → github_releases (back-compat kept) - github_source → github_sources (back-compat kept) - gitea_repo → gitea_releases (back-compat kept) New keys: - gitea_sources, gitlab_releases, gitlab_sources All keys now accept either owner/repo shorthand or full URLs: - github_releases = sharkdp/bat - github_releases = https://github.com/sharkdp/bat - gitea_releases = https://git.rootprojects.org/root/pathman Defaults: github → github.com, gitlab → gitlab.com. Gitea has no default (self-hosted only). Updated all 73 releases.conf files from github_repo to github_releases.
title, homepage, tagline
| title | homepage | tagline |
|---|---|---|
| GitHub CLI | https://github.com/cli/cli | `gh` is GitHub on the command line. |
To update or switch versions, run webi gh@stable (or @v1, @beta, etc).
Files
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.local/bin/gh
~/.config/gh/
Cheat Sheet
ghis cross-platform Github command-line. You can perform pull requests create-repo, isssues, fork and other GitHub functionalities right from your terminal while Working with Git and your code.
Installation:
- For macOS and Windows macOS/Windows
- For linux Installation on specific distribution linux
Authentication
Authenticate with your Github account.
gh auth login
Pull Request
Create a pull request.
gh pr create -t <title> -b <body>
Check out pull requests locally.
gh pr checkout <pr#>
Check the status of your pull requests.
gh pr status
View Your pull requests' checks.
gh pr check
Issues
View and filter a repository's open issues.
gh issue list
Release
Create a new release.
gh release create 0.1
Actions
How to see the status of recent jobs
gh run list
Note: The Job ID is the third from the right column.
How to view failure details
gh run view <job-id>
How to rerun a failed job
gh run rerun <job-id>
Repo
View repository READMEs.
gh repo view
Create Shortcut
Create Shortcut for a gh command.
gh alias set bugs 'issue list --label="bugs"'