I am on mac OS unlike this post:
I have password conf
Well, I faced the same issue whenever I change my login password.
Below is the command I need to run to fix this issue:-
git config --global credential.helper wincred
After running above command it asks me again my updated username and password.
When the Windows Credential Manager asks for your credentials to access GitLab, those are username and password you use when accessing GitLab. EG: use your email and password.
It happen every time I'm forced to change the Windows password and none of above answers helped to me.
Try below solution which works for me:
Go to Windows Credential Manager. This is done in a EN-US Windows by pressing the Windows Key and typing 'credential'. In other localized Windows variants you need to use the localized term (See comments for some examples).
alternatively you can use the shortcut
control /name Microsoft.CredentialManager
in the run dialog
(WIN+R)
I got the same error and I solved this by :
Apply command from cmd (run as administrator)
git config --system --unset credential.helper
And then I removed gitconfig file from C:\Program Files\Git\mingw64/etc/ location (Note: this path will be different in MAC like "/Users/username")
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...
For me, the following worked:
Do not use your GitLab password, but create an access token and use it instead of your password:
I beleive I'm little late here. But I think this would help the new peeps!
My Errors were: remote: HTTP Basic: Access denied
remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.
remote: You can generate one at https://gitlab.com/profile/personal_access_tokens
fatal: Authentication failed for 'https://gitlab.com/PROFILE_NAME/REPO_NAME.git/'
I'm on Ubuntu but this worked for me:
git clone https://oauth2:YOUR_TOKEN@gitlab.com/PROFILE_NAME/REPO_NAME.git/