HTTP Basic: Access denied fatal: Authentication failed

后端 未结 14 1427
无人及你
无人及你 2021-01-30 02:23

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 de         


        
相关标签:
14条回答
  • 2021-01-30 02:47

    Edit the entry(possibly the password field that may have changed) for git: inside Generic Credentials section of Windows Credentials which can be accessed from Control Panel. Please note this is for Windows OS.

    0 讨论(0)
  • 2021-01-30 02:48

    i coped with same error and my suggestion are:

    1. Start with try build another user in git lab
    2. Recheck username & password (although it sounds obvious)
    3. Validate the windows cerdential (start -> "cred")
    4. Copy & paste same URL like you get from git lab, the struct should be:

    http://{srvName}/{userInGitLab}/{Repository.git} no '/' at the end

    1. Recheck the authorization in GitLab
    2. Give an attention to case sensitive

    Hope one of the above will solve it.

    0 讨论(0)
  • 2021-01-30 02:50

    This can happen also because of a change in the password and since Git Credential Manager caches it, so if that's the case 1. Open Credential Manager in Windows 2. Search for your GIT credential and reset it to the new password.

    0 讨论(0)
  • 2021-01-30 02:53

    When it asks for username and password. Just add gitlab user name and password for clonning. For the box to pop up asking credentials, do the following:

    go to "control panel"-> user accounts-> manage credentials->windows credentials->git:https://username@gitlab.com->click on down arrow-> then click remove.

    Hope this helps!

    0 讨论(0)
  • 2021-01-30 02:54

    I use VS Code on my mac OS and GitLab for my project. I tried so many ways but it worked simply for me by resetting the remote origin of your project repository with the below command:

    cd <local-project-repo-on-machine>
    git remote set-url <remote-name> <remote-url>
    
    for ex: git remote set-url origin https://<project-repository>.git
    

    Hope it helps someone.

    macosgitgitlabauthentication

    0 讨论(0)
  • 2021-01-30 02:55

    For my case, I initially tried with

    git config --system --unset credential.helper

    But I was getting error

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

    Then tried with

    git config --global --unset credential.helper

    No error, but still got access denied error while git pulling.

    Then went to Control Panel -> Credentials Manager > Windows Credential and deleted git account.

    After that when I tried git pull again, it asked for the credentials and a new git account added in Credentails manager.

    0 讨论(0)
提交回复
热议问题