Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-credential-osxkeychain wants to access key "github.com" in your keychain

Tags:

git

In line with the github recently removing support for password authentication - I have created a PAT following this guide

However, everytime I git push I see that that the "authencity of git-credential-osxkeychain cannot be verified.

Why this? Surely I don't need to enter my password everytime I push?

enter image description here

like image 299
Jordan Miguel Avatar asked Dec 21 '25 12:12

Jordan Miguel


1 Answers

OSX prompts for a password every time you use git after brew upgrades git. To make Keychain Access trust git with the password again, you have to open Keychain Access, search for github under Keychain: login, kind: Internet password, and add the new path to git-credential-osxkeychain. Or, just delete the github password and regenerate the Personal Access Token again. (source: Fixing the git-credential-osxkeychain password prompts on every git transaction )

For example, today brew installed git-credential-osxkeychain to /usr/local/Cellar/git/2.36.0/libexec/git-core/git-credential-osxkeychain, so I had to add that path to the password in Keychain Access.

$ brew info git
…
/usr/local/Cellar/git/2.36.0 (1,544 files, 43.6MB) *
…
$ find /usr/local/Cellar/git/2.36.0 -name git-credential-osxkeychain
/usr/local/Cellar/git/2.36.0/libexec/git-core/git-credential-osxkeychain

Screenshot of password window in Keychain Access

like image 103
yonran Avatar answered Dec 24 '25 03:12

yonran