Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to click always allow on git-credential-osxkeychain popup

Tags:

git

Recently I've been getting a popup when pushing or pulling from upstream

git-credential-osxkeychain wants to use your confidential information stored in "github.com" in your keychain.  The authenticity of "git-credential-osxkeychain" cannot be verified.  Do you want to allow access to this item? 

I click Always allow, but it doesn't do anything. The only button that works is Deny, and then I have to enter in my github username and pw.

I used to be able to do all this automatically without this happening... how do I fix this?

like image 242
WinchenzoMagnifico Avatar asked Nov 10 '15 17:11

WinchenzoMagnifico


People also ask

How do I add Git credentials to keychain on Mac?

Updating your credentials via Keychain AccessType Keychain access then press the Enter key to launch the app. In Keychain Access, search for github.com. Find the "internet password" entry for github.com . Edit or delete the entry accordingly.

How do I clear my Git credentials on Mac?

On Mac, use the command git credential-osxkeychain erase . OR remove manually from keychain from Applications → Utilities → Keychain Access. Then remove the github.com keychain. Then use push; it will ask for the keychain access; then deny.

How do I disable the credential cache in Git?

You could also disable the use of the Git credential cache using git config --global --unset credential. helper. Then reset this, and you would continue to have the cached credentials available for other repositories (if any). You may also need to do git config --system --unset credential.


Video Answer


1 Answers

This fixed the issue for me:

  • Open Keychain Access
  • Select Keychains -> login and Category -> Passwords
  • Type github.com in search box, you should see an entry (or entries) of Internet Password kind for github.com. Right click & Delete them.
  • Go back to terminal and retry the git command that requires the password
  • Type in your git username and password when prompted
  • Done :)
like image 176
Hlung Avatar answered Oct 03 '22 19:10

Hlung