Password-based authentication for Git is deprecated, and we recommend using a personal access token (PAT) when prompted for a password instead, which is more secure. Treat your token just like a password. 詳しい情報については、「個人アクセストークンを作成する」を参照してください。
キーチェーンアクセスを介して認証情報を更新する
- Click on the Spotlight icon (magnifying glass) on the right side of the menu bar. Type
Keychain accessthen press the Enter key to launch the app.
- キーチェーン Access で、github.com を探してください。
github.comの「internet password」エントリを見つけてください。
- 適宜、エントリを編集または削除します。
コマンドラインで認証情報を削除する
コマンドラインを通じて、認証情報ヘルパーを使ってキーチェーン エントリを直接、削除できます。
これを行うために、次のコマンドを入力してください:
$ git credential-osxkeychain erase
host=github.com
protocol=https
> [Press Return]
成功した場合、何もプリントアウトされません。 動作をテストするには、GitHub からリポジトリをクローンしてみます。 パスワードを尋ねられた場合、キーチェーンは削除されています。

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
