FGF-College-Work / Forum

:beer: Espaço dedicado a discussões e tira dúvida sobre disciplinas e conteúdo tecnológico.
MIT License
13 stars 4 forks source link

GitLab remoto: HTTP Básico: acesso negado e erro fatal na autenticação #131

Open marcialwushu opened 5 years ago

marcialwushu commented 5 years ago

GitLab remoto: HTTP Básico: acesso negado e erro fatal na autenticação

Existing folder

I am prompted to enter my GitLab username and password. After password is entered I get: remote:

HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/myname/myproject'
git config --system --unset credential.helper

then enter new password for Git remote server.

marcialwushu commented 5 years ago

It depends where you put your credentials. If the previous command does not work try also using global flag


git config --global--unset credential.helper
marcialwushu commented 5 years ago

I got the same error and I solved this by :

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

marcialwushu commented 5 years ago

For me, the following worked:

Do not use your GitLab password, but create an access token and use it instead of your password:

marcialwushu commented 5 years ago

https://stackoverflow.com/questions/47860772/gitlab-remote-http-basic-access-denied-and-fatal-authentication