Configure Reset GitLab credentials from Command Line

If you're receiving the following error message when trying to do git pull from the command line, then possibly trying to reset the credentials in the git config might help:

PS C:\Tools\my-builds> git clone http:////.git
Cloning into ''...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http:////.git'

The following command will reset the credentials in git configuration, so you can reenter them:

PS C:\Tools\my-builds> git config --system --unset credential.helper
PS C:\Tools\my-builds> git clone http:////.git
Cloning into ''...
Username for 'http://': :
Password for 'http://': ':
remote: Counting objects: 1184, done.
remote: Compressing objects: 100% (160/160), done.
remote: Total 1184 (delta 294), reused 352 (delta 243)
Receiving objects: 100% (1184/1184), 496.40 KiB | 970.00 KiB/s, done.
Resolving deltas: 100% (840/840), done.
PS C:\Tools\my-builds>

Comments

Popular posts from this blog

Type casting problem while unmarshalling XML objects using JAXB

Second Interview at Seattle, Microsoft HQ (Part I)

My J2EE/Component Based Software Design Projects