GitLab remote: HTTP Basic: Access denied and fatal Authentication

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

    For me, the following worked:

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

    1. In GitLab, go to Settings > Access Tokens
    2. Create a new token (check api)
    3. git clone ...
    4. When you are asked for your password, copy and paste the access token instead of your GitLab password

提交回复
热议问题