$ brew install github/gh/gh
https://cli.github.com/
$ gh config set git_protocol ssh
https://github.blog/changelog/2020-04-23-github-cli-now-supports-autofilling-pull-requests-and-custom-configuration/
# リポジトリ関連 $ gh repo xxxxx # プルリクエスト関連 $ gh pr xxxxx # イシュー関連 $ gh issue xxxxx
# 設定関連 $ gh config xxxxx # エイリアス関連 $ gh alias xxxxx # Gist 関連 $ gh gist xxxxx # API 関連 $ gh api xxxxx
$ gh repo create # --public オプション追加で公開設定
$ gh repo view -w
$ gh pr create -d
$ gh pr status
$ gh pr view 1 # -w オプション追加でブラウザ開く
$ gh co 1 # gh pr checkout #1 のエイリアス # デフォルトに登録されている
$ gh pr merge 1 -d
$ gh issue create
By Syuji Higa