unable to click always allow on git-credential-osxkeychain popup
GitGit Problem Overview
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?
Git Solutions
Solution 1 - Git
This fixed the issue for me:
- Open
Keychain Access
- Select
Keychains -> login
andCategory -> Passwords
- Type
github.com
in search box, you should see an entry (or entries) ofInternet Password
kind forgithub.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 :)
Solution 2 - Git
You should enter password of your user(mac login password), but not git password.
Solution 3 - Git
Delete the entry corresponding to git-credential-osxkeychain in Keychain Access and re-enter your credentials to get it working.
Solution 4 - Git
This appears to have been an issue with MagicPrefs. I quit MagicPrefs and my symptoms have disappeared.
-- original answer below for posterity -- I found that this occurs with some sort of failure with Keychain Access. The reason I say that is because I also had the problem clicking the button Allow or Always Allow (but not Deny) when changing another aspect of Keychain.
authd.log file shows "Succeeded.." for what appears to be each time I pressed Accept it however the modal dialog box does not disappear.
Solution for me: Restart, did not have to re-enter my credentials like the solutions above. :(
Solution 5 - Git
For SourceTree users, try downgrading Git to system Git, via SourceTree > Preferences > Git > Use System Git.
According to this report SourceTree 2.2 uses Git 2.6.4 which is causing the bug.
Solution 6 - Git
I fixed this but in a somewhat insecure way because none of the other proposed solutions worked for me.
- Open Keychain Access.
- Search for the github.com Internet Password entry and double click it.
- Go to the Access Control tab and change it to
Allow all applications to access this item
. - Save changes.
You should no longer get prompted by xcodebuild
.