git credential / config helper
注意認証情報の管理
git config --global credential.helper <helper>
HTTPSの認証情報を安全に保存・再利用する仕組みを設定。認証エラー連発時はヘルパー設定と古いトークンの残留をまず疑う。
実行例
git config --global credential.helper osxkeychainキーチェーンへ保存
書式
git config credential.helper manager|store|cache / git credential-manager ...
実行前の注意
storeは平文保存。OS資格情報系を選ぶ。
関連コマンド
- git configGit設定
- git ls-remoteリモート参照の確認
- securityキーチェーンのCLI操作