This page and many like it gives instructions for setting up the osxkeychain credential helper with git. I've followed these instructions; everything seemed to work fine. I can see that my username and password in the Keychain Access application are correct and that git-credential-osxkeychain has access to the github.com record. When I type git config -l
I can see the entry credential.helper=osxkeychain
as well as correct user.name and user.email entries. When I run git credential-osxkeychain
I see the usage message I'm apparently supposed to. At no point do I receive an error message. Everything seems to be setup correctly.
However, no matter how many times I git push a particular repository, it always asks for my username and password. Entering the username and password found in my Keychain Access entry works; so it does not appear to be a login issue. Additionally, when I type git credential-osxkeychain erase
(or git-credential-osxkeychain erase
), the command hangs silently and, as far as I can tell, indefinitely.
I have, as of yet, been unable to find anything documenting this issue. This question raises a similar issue, but my git version is 2.6.4, so the solution is not helpful. Why is it doing this and how do I get git to remember my username and password with the osxkeychain credential helper?
I'm using Mac OS X 10.11.4 and git version 2.6.4.