--- lang: ja-jp breaks: true --- # GitHub CLI コマンド集 2023-10-21 > https://cli.github.com/manual/gh #### リポジトリのフォークを最新に保つために上流リポジトリと同期  > https://docs.github.com/ja/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork#github-cli-%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%83%95%E3%82%A9%E3%83%BC%E3%82%AF%E3%81%AE%E3%83%96%E3%83%A9%E3%83%B3%E3%83%81%E3%82%92%E5%90%8C%E6%9C%9F%E3%81%99%E3%82%8B ```shell= gh repo sync owner/repositoryName -b main ``` #### ユーザ情報を取得する。 ```shell= gh api user ``` #### 認証情報の確認 ```shell= gh auth status ``` #### 認証情報を削除 ```shell= gh auth logout ``` ###### tags: `GitHub CLI` `CitHub` `git`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up