GitLab remote: HTTP Basic: Access denied and fatal Authentication

前端 未结 30 2474
攒了一身酷
攒了一身酷 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:50

    Before digging into the solution lets first see why this happens.

    Before any transaction with git that your machine does git checks for your authentication which can be done using

    1. An SSH key token present in your machine and shared with git-repo(most preferred) OR
    2. Using your username/password (mostly used)

    Why did this happen

    In simple words, this happened because the credentials stored in your machine are not authentic i.e.there are chances that your password stored in the machine has changed from whats there in git therefore

    Solution

    Head towards, control panel and search for Credential Manager look for your use git url and change the creds.

    There you go this works with mostly every that windows keep track off

提交回复
热议问题