Git remote: HTTP Basic: Access denied and fatal Authentication

Git remote: HTTP Basic: Access denied and fatal Authentication



Sometimes, I am facing issue with Git and getting error that - "Git remote: HTTP Basic: Access denied and fatal Authentication".

Problem occurs while I change my password of Git. 

So, we need to update git password in Windows system.


Solution 1

Go to Windows Credential Manager (press Windows Key and type 'credential') to edit the git entry under Windows Credentials. Replace old password with the new one.

Solution 2

1. Run below command from cmd

git config --system --unset credential.helper

And when I execute the above command, I got another error

error: could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig: Permission denied

2. And then I removed gitconfig file from C:\Program Files\Git\mingw64/etc/ location

3. After that use git command like git pull or git push, it asked me for username and password. applying valid username and password and git command working.


Hope this will help you and save your time.

Enjoy !!!

:)

No comments:

Post a Comment