xcode stuck on github.com keychain access dialog

I am stuck in the dialog when trying to pull from remote.


"git-credential-osxkeychain wants to use your confidential in formation stored in "github.com" in your keychain.


No matter how many times I press allow the dialog remains. Have deleted and recreated the github.com item in my keychain and on xcode but didn't seem to change anything.


Also, when I try to modify the keychain item to allow Xcode just to use the keychain item without asking I then get stuck on the password dialog.


" Keychain access wants to change access permissions of the "github.com" item in your keychain.


Again, no matter how many times I press allow, the dialog wont not go away.


It can only be a bug. I am pretty sure my password is correct. Is there any work around that?

Replies

Go terminal, do `ps aux | grep Xcode`, find the pid with /Applications/Xcode.app/Contents/MacOS/Xcode, then `kill pid`. Then restart the mac, After this will be fine.