Cannot login due to GITHUB_TOKEN error message #9094
Replies: 2 comments 3 replies
-
|
Is there any chance you've aliased |
Beta Was this translation helpful? Give feedback.
-
|
The first thing I'd check is that it may be either
So if
then one of the likely issues is:
For example:
Remove-Item Env:GITHUB_TOKEN -ErrorAction Ignore
Remove-Item Env:GH_TOKEN -ErrorAction Ignoreor: $env:GITHUB_TOKEN = $null
$env:GH_TOKEN = $null
set GITHUB_TOKEN=
set GH_TOKEN=If you're using Git Bash / another wrapper, that shell may have inherited the variable from elsewhere even if your So my short answer is: check both |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i am trying to run
gh netwhich gives the following error:To get started with GitHub CLI, please run: gh auth login -s codespace.Trying to run
gh auth login -s codespacegivesThe value of the GITHUB_TOKEN environment variable is being used for authentication. To have GitHub CLI store credentials instead, first clear the value from the environment..However i checked the output of the
envcommand and there is noGITHUB_TOKENnamed variable. I even tried to unset it withset GITHUB_TOKEN=(set it to nothing) but the same error appears again and again.Beta Was this translation helpful? Give feedback.
All reactions