How to fix Git for Windows login error via HTTPS

There are a lot of ways to login to a Git server, which means there are a lot of ways to also fail. I have a suggestion for you if, after trying everything else, you are still getting this error:

remote: invalid username or password. if you log in via a third party service you must ensure you have an account password set in your account profile.

Open a command prompt as administrator and enter the following commands:

git config –global –unset credential.helper

git config –system –unset credential.helper

Make sure you do both.

Now attempt to pull from the server again. This time you should be asked for your user name and password. Make sure you use the username that is in the URL of your request. For example, in this URL: https://gituser@sirspot.com the user name is gituser.

I hope this helped!

 

Author: sirspot

I write software, love my wife and kids, do various house projects, play video games when I have time, and could use a little more sleep