0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

terminalでGitの認証情報を更新する

Posted at

MacのTerminalでGitを使っている場合、usename, passwordは一度入力すると以後聞かれなくなると思いますが、その後ユーザやパスワードを変更したくなった時にどうするかを記します。

  1. キーチェーンを開く
  2. gitなどで検索し、該当の認証情報を削除する

コマンドラインのgitのクレデンシャル情報は下記の画像の通り、「アクセス制御」タブの「これらのアプリケーションによるアクセスを常に許可」に git-credential-osxkeychain が入っているかと思います。

スクリーンショット 2021-06-07 7.15.46.png

この認証情報を消した後再度pushなどをすると、username, passwordが聞かれます。

以上、認証情報の削除は自己責任で行ってください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?