GitLab remote: HTTP Basic: Access denied and fatal Authentication

前端 未结 30 2410
攒了一身酷
攒了一身酷 2020-11-28 00:06

I am on mac OS unlike this post:

  • 'git push origin MyBranchName' throws error "HTTP Basic: Access denied"

I have password conf

30条回答
  •  遥遥无期
    2020-11-28 00:48

    None of the above solutions worked for me and I don't have admin rights on my laptop, but they eventually led me to the git tools credential storage doc :

    My setup Windows 10 | git version 2.18.0.windows.1 | Clone through HTTPS link

    This solution works if you use wincred as credential helper :

    > git config --global credential.helper
    wincred
    

    Changing the helper to "cache" should do the trick, as it will ask you to provide your credentials again. To set it to cache, just type :

    > git config --global credential.helper cache
    

    Check your update is active:

    > git config --global credential.helper
    cache
    

    You should now be able to clone / pull / fetch as before.

提交回复
热议问题