To have GitHub CLI store credentials instead, first clear the value from the environment.

1 개요[ | ]

To have GitHub CLI store credentials instead, first clear the value from the environment.
$ gh auth login
? What account do you want to log into? GitHub.com
The value of the GH_TOKEN environment variable is being used for authentication.
To have GitHub CLI store credentials instead, first clear the value from the environment.
# echo $GH_TOKEN
ghp_Ep1rG3tvxzbfd5fhjKMOlQn7pr9tSU2WYvAC
수동 로그인
$ GH_TOKEN= gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Paste an authentication token
Tip: you can generate a Personal Access Token here https://github.com/settings/tokens
The minimum required scopes are 'repo', 'read:org', 'workflow'.
? Paste your authentication token: ****************************************
- gh config set -h github.com git_protocol https
✓ Configured git protocol
✓ Logged in as user01
자동 로그인
$ echo $GH_TOKEN | GH_TOKEN= gh auth login --with-token

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}