Github two-way authentication push problem on Windows 10
Posted on Fri 20 July 2018 in Github
It's always good to enable two-way authentication on any account on the net because it increases security. Github does support two way authentication as well.
I tried to push my new blog on Github.io by git commands below:
git add *.*
git commit -m 'hello-world'
git push
I expected git cli prompt for an username and password. I also expected Github to sends me an SMS wich contains a token, but this is what I got:
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for 'https://github.com': username
Password for 'https://user@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/user/repo.git/'
After reading HttpRequestException and then I'm prompted for username issue, a Github user suggested to install the latest version of it.
Just installed Git Credential Manager for Windows version 1.16.2 and my problem solved.