这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

github/homebrew-gh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 

Repository files navigation

Public releases for GitHub CLI

Install for macOS

Homebrew

To install:

brew install github/gh/gh

To upgrade:

brew upgrade gh

Manual install

  1. Download the *_macOS_amd64.tar.gz file from the releases page
  2. tar -xf gh_*_macOS_amd64.tar.gz
  3. Copy the uncompressed gh somewhere to your PATH (e.g. cp gh_*_macOS_amd64/bin/gh /usr/local/bin/)

Install for Windows

  1. Download the *.msi installer from the releases page
  2. Run the installer

Install for Linux

Debian/Ubuntu Linux

  1. sudo apt install git if you don't already have git
  2. Download the .deb file from the releases page
  3. sudo dpkg -i gh_*_linux_amd64.deb install the downloaded file

(Uninstall with sudo apt remove gh)

Fedora/Centos Linux

  1. Download the .rpm file from the releases page
  2. sudo yum localinstall gh_*_linux_amd64.rpm install the downloaded file

(Uninstall with sudo yum remove gh)

Other Linux

  1. Download the *_linux_amd64.tar.gz file from the releases page
  2. tar -xf gh_*_linux_amd64.tar.gz
  3. Copy the uncompressed gh somewhere to your PATH (e.g. sudo cp gh_*_linux_amd64/bin/gh /usr/local/bin/)

(Uninstall with rm)

Usage

$ gh help
Work with GitHub from your terminal

Usage:
  gh [command]

Available Commands:
  help        Help about any command
  issue       Work with issues
  pr          Work with pull requests

Flags:
  -h, --help                    Help for gh
  -R, --repo string             Select GitHub repository

Use "gh [command] --help" for more information about a command.

Thank you for trying out GitHub CLI! 🌟

Development version (restricted access)

You can get access to features that are not yet in the stable release by building the development version:

brew install github/gh/gh --HEAD

To upgrade it:

brew upgrade gh --fetch-HEAD