So I had git running on my computer just fine. My password was saved with the 
osxkeychain thingy and everything ran smoothly. Today I decided I should be 
safe and enable google authenticator 2-step authentication on all the sites 
that support it. Interestingly github supports it so I set it up. It works fine 
through the website interface. I proceed to branch a project I'm working on and 
do a bit of work and then I try to push the new branch up. Not surprised at all 
when I find out my authentication doesn't work. What is surprising to me is 
that I can't seem to find anything at all on google to solve my problem. 

my initial error was this:

    git push --set-upstream origin binary-dev
    remote: Invalid username or password.
    fatal: Authentication failed for '***/***.git/'

I then purged my old password stuff to get the interactive prompt with:

    git credential-osxkeychain erase

And that worked at getting rid of my old settings but now I get:

    git push --set-upstream origin binary-dev
    Username for '': ***
    Password for 'https://***':
    remote: Invalid username or password.
    fatal: Authentication failed for '***/***.git/'

So git itself doesn't seem to know about the google authenticator. I literally 
can't seem to find any information on this. About half the pages are about how 
to set it up on the website and the other half are how to fork the actual 
google authenticator source code. I may not be creative enough with my keywords 
though. There may also be no solution but then I have to wonder why github 
offers 2-factor auth at all? Is there anyone out there who's been stuck here 
like me and has found a way out? Any help would be *greatly* appreciated. I 
just want git to work like it did before I added the 2-step auth to github.

Thanks in advance,  

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to