🦔

GitHub公式のghコマンド使ってみた

2021/07/08に公開

Install for mac

brew install gh
https://github.com/cli/cli

認証

> gh auth login

> gh auth status
------------------------
github.com
  ✓ Logged in to github.com as mzmt (/Users/mzmt/.config/gh/hosts.yml)
  ✓ Git operations for github.com configured to use ssh protocol.
  ✓ Token: *******************
------------------------

レポジトリ周り

> gh repo list
> gh repo create user/repo
> gh repo clone user/repo

ブラウザで開く

gh browse

Discussion