I use GitLab Community Edition 9.1.3 2e4e522 on Windows 10 Pro x64. With Git client.
Error
Cloning into 'project_name'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://[email protected]/my_user_name/project_name.git/'
How to fix it?
A simple git fetch/pull command will throw a authentication failed message. But do the same git fetch/pull command second time, and it should prompt a window asking for credential (username/password). Enter your Id and new password and it should save and move on. Show activity on this post. I use VS Code on my mac OS and GitLab for my project.
If you are using git > 2.11 and using Kerberos to interact with Gitlab you need set this configuration in your local git to avoid the remote: HTTP Basic: Access deniederror. $ git config --global http.emptyAuth true
If you are not prompted for your username and password, your credentials may be cached on your computer. You can update your credentials in the Keychain to replace your old password with the token. That’s it, you’re done. Now the problem that arose after enabling two-factor authentication in the GitHub account has been solved.
@vonkad and @melvicgomez: this bug report is that the 2FA personal access token does not work if you have the Git Credential Manager installed. @andschwa I used the personal access token to pass the authentication. Just did it few 2days ago after I enabled the 2FA.
Open CMD (Run as administrator) type command:
git config --system --unset credential.helper
then enter new password for Git remote server.
Im my case i was using Git Credential Manager for Windows (it was installed by default, I didn't install it manually)
Credentials Manager had saved my old password but i changed it lately.
If you are in the same conditions, to solve this problem: Go to Control Panel -> Credentials Manager and delete git account. After that it will ask you again for the credentials.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With