Cmder won't let me push to GitHub

I use Windows 10, and I’ve only heard bad things about the vanilla cmd from Windows, so I went ahead and downloaded Cmder. For a couple weeks, it worked just as it should have, I could push/pull and do everything I needed to. Now, however, I’ve been encountering a problem where I will try to push code to GitHub but it doesn’t work. I’ll be prompted to login to GitHub, and I will do so, but immediately upon entering my 2-step verification code, I get an error in Cmder. It says:

fatal: Win32Exception encountered.
    Failed to write credentials

After this, I’ll be prompted to enter my username and password inside of Cmder, but it again always fails and says:

fatal: Authentication failed for 'https://github.com/username/repository'

I can go into the normal Windows cmd prompt and push things to GitHub with no problem, I don’t even need to login or anything. It’s specifically Cmder that I’m having problems with. Any help would be greatly appreciated, I’ve been wasting too much time trying to figure this out when I have projects I need to work on…

G’day @whoisheist!

I’ve been using Cmder for several months now on Windows 7 and thankfully haven’t seen this problem. :smiley:

Maybe some of these links can help?

https://stackoverflow.com/questions/43577576/git-bash-win32exception-failed-to-write-credentials

https://github.com/Microsoft/Git-Credential-Manager-for-Windows/issues/502

Possibly you should run

git config --global credential.helper manager

within Cmder to make sure it knows to use Window’s creditial manager.

If that doesn’t work the second link suggests making sure your owner values are correct in Cmder.

 A bit off-topic…

@whoisheist wrote:

I use Windows 10, and I’ve only heard bad things about the vanilla cmd from Windows, so I went ahead and downloaded Cmder.

I would have agreed for previous versions of Windows, but cmd has been much improved in Windows 10. I’d still prefer almost any terminal emulator in Linux instead… :stuck_out_tongue: