個人的な備忘録です。
検索エンジンから飛んできた人は参考にしないでください。
やったこと
brew search
コマンドを打ったら以下のような警告が出た:
Warning: Error searching on GitHub: GitHub API Error: Bad credentials The GitHub credentials in the macOS keychain may be invalid. Clear them with: printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase Create a GitHub personal access token: https://github.com/settings/tokens/new?scopes=gist,public_repo,workflow&description=Homebrew echo 'export HOMEBREW_GITHUB_API_TOKEN=your_token_here' >> ~/.zshrc
ほんまありがた迷惑ですわGitHubさん。
ほんで、思考停止で下記のコマンド打ちました:
printf "protocol=https\nhost=github.com\n" | git credential-osxkeychain erase
そいだら警告消えましたわ。意味わからんけど。
調べずに思考停止でコマンド打っちゃったので、一応その備忘録。
暇な人がいましたら、ワイは一体何の警告に対して、何を行ったのか教えてください^^
^^